Share via


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

Example

Note   This sample code is specific for use in MapPoint North America; it is for illustration purposes only.