Export (0) Print
Expand All

VERouteOptions.RouteMode Property

You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.

A VERouteMode Enumeration value specifying the mode of route to return.


VERouteOptions.RouteMode = value;

The default value is VERouteMode.Driving.

If the RouteMode property is set to VERouteMode.Driving, the returned route will contain driving directions in the itinerary.

If the RouteMode property is set to VERouteMode.Walking, the returned route will contain walking directions in the itinerary unless the VERouteOptions.UseTraffic Property is set to true, in which case an empty VERoute object is returned. An empty VERoute object has no itinerary and the VERoute.Distance Property and VERoute.Time Property are 0.

If the RouteMode property is set to VERouteMode.Walking and the VERouteOptions.RouteOptimize Property is set to VERouteOptimize.MinimizeTime, then an empty VERoute object is returned.

Show:
© 2014 Microsoft