GraffitiMap.Directions.Route

View Categories

Enumerations #

NameValues
TravelModesDriving
Bicycling
Transit
Walking
TwoWheeler
UnitSystemsImperial
Metric

Constants #

This class exposes no constants.

Events #

This class exposes no events.

Methods #

DefinitionParametersReturn TypeDescription
Constructororigin as GraffitiMap.PointNoneCreates a new instance.
destination as GraffitiMap.Point
UpdatePathNoneNoneCall this when you have finished making programmatic changes to the route’s waypoints array to send the updated data to the client.

Properties #

NameTypeDefault ValueDescription
AvoidFerriesBooleanFalseWhen True, the route will be plotted to avoid any ferries.
AvoidHighwaysBooleanFalseWhen True, the route will be plotted to avoid any highways.
AvoidTollsBooleanFalseWhen True, the route will be plotted to avoid any tolls.
DestinationGraffitiMap.PointNilEnd point for the route.
DistanceTextString“”String representation of the route’s distance, IE: 2984mi
DistanceValueInteger0Integer representation of the route’s distance, IE: 2984
EditableBooleanFalseWhen True, the user may drag the route to alter it.
OriginGraffitiMap.PointNilStart point for the rout. 
ProvideAlternativesBooleanFalseWhen True, the map will provide alternatives within the display that the user may choose.
ResolveNamesBooleanFalseWhen True, partial addresses or place names will be decoded using the Google Geocoder APIautomatically when the RouteChanged event is raised (which also occurs immediately upon display of the route). Your API Key must have Geocoder enabled.
TravelModeTravelModesDrivingIntended means of transportation to route.
UnitSystemUnitSystemsImperialUnit system used in directions text.
waypointsGraffitiMap.Directions.Waypoint()NilArray containing waypoints between Origin and Destination.

Examples #

Sample Route #

var directionsToNY as new GraffitiMap.Directions.Route( johnsonCity.Position, new GraffitiMap.Point( "New York, NY" ) )
directionsToNY.Editable = True
me.Directions = directionsToNY

Notes #

This class currently has no notes.