GraffitiSuite Docs
Docs
Route
Loading document parsing libraries...
# Route Class ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | True | True | ### Desktop | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Enumerations | Name | Value | Description | | --- | :---: | --- | | TravelModes | Driving <br > Bicycling <br > Transit <br > Walking <br > TwoWheeler | Supported modes of travel. | | UnitSystems | Imperial <br > Metric | Supported distance measurement units. | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | Constructor | origin as GraffitiMap.Point <br> destination as GraffitiMap.Point | (None) | Creates a new instance of the class. | | Update | (None) | (None) | Triggers an update on the map. | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | Attributes | mDestination | GraffitiMap.Point | (None) | | Attributes | mID | String | (None) | | Attributes | mOrigin | GraffitiMap.Point | (None) | | Attributes | mParent | GraffitiUpdateInterface | (None) | | Attributes | APIKey | String | (None) | | Attributes | ID | (None) | (None) | | AutoFocus | Boolean | False | When True, this route will be automatically focused on the map. | | AvoidFerries | Boolean | (None) | (None) | | AvoidHighways | Boolean | (None) | (None) | | AvoidTolls | Boolean | (None) | (None) | | Destination | GraffitiMap.Point | (None) | (None) | | Editable | Boolean | (None) | (None) | | Origin | GraffitiMap.Point | (None) | (None) | | ProvideAlternatives | Boolean | (None) | (None) | | ResolveNames | Boolean | False | When True the map will attempt to resolve location names to world coordinates. | | ShowStepsInSidebar | Boolean | True | Determines whether the route steps will be displayed in a sidebar on the map. | | StrokeColor | Color | (None) | (None) | | StrokeWeight | Integer | (None) | (None) | | Tag | Variant | (None) | Developer storage | | TravelMode | TravelModes | (None) | (None) | | UnitSystem | UnitSystems | (None) | Measurement unit system to use for calculation and display. | | waypoints() | GraffitiMap.Directions.Waypoint | (None) | Waypoints along the route. |