MSDN Library

VERouteOptions.UseMWS 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.

The MapPoint Web Service has been retired, so a Bing Maps route will be returned regardless of whether the UseMWS property is set to true.

A Boolean value specifying whether to use the MapPoint Web Service to generate the route.

VERouteOptions.UseMWS = bool;

By default the route is generated by the new routing service. To use the MWS routing service, set this property to true.

For some cultures, this property must be set to true to return localized directions. See the Returning Localized Results topic for more information.

The MapPoint Web Service can only be used to calculate directions if the VERouteOptions.RouteMode Property is set to VERouteMode.Driving. If the UseMWS property is set to true and the VERouteOptions.RouteMode property is set to VERouteMode.Walking, then an empty VERoute object is returned. An empty VERoute object has no itinerary and the VERoute.Distance Property and VERoute.Time Property are 0.

© 2016 Microsoft