VEDistanceUnit Enumeration

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.

An enumeration of the distance unit used for generating routes and itineraries.

VEDistanceUnit{ Miles Kilometers }

Member Description


Generates route information in miles.


Generates route information in kilometers.

This enumeration is used in the units parameter of the VEMap.GetRoute Method and as the VERouteItineraryDeprecated.DistanceUnit Property to specify the distance units to use when generating the route.

This enumeration is also used with the VEMap.SetScaleBarDistanceUnit Method to change the map scale bar units.