ElapsedDistance property
Returns the elapsed distance of the route as of the specified direction, in GeoUnits (miles or kilometers). Returns 0 if a route is not currently calculated. Read-only Double.
Applies to
Objects: Direction
Syntax
object.ElapsedDistance
Parameters
Part |
Description |
---|---|
object |
Required. An expression that returns a Direction object. |
Remarks
To calculate a route, use the Calculate method.
To return or set GeoUnits, use the Units property.
Example
Note This sample code is specific for use in MapPoint North America; it is for illustration purposes only.