Extends
Methods
addWaypoint(coordinates)
Add a waypoint, by coordinates, for route calculation.
Name | Type | Description |
---|---|---|
coordinates | gem. |
addWaypointFromLandmark(landmark)
Add a waypoint, by landmark, for route calculation.
Name | Type | Description |
---|---|---|
landmark | gem. |
calculateRoute(callbackfunction)
Name | Type | Description |
---|---|---|
callbackfunction | * |
delete()
calls emscripten object destructor
- Inherited From
get(nId) → {gem.routesAndNavigation.Route}
Name | Type | Description |
---|---|---|
nId | number |
- Overrides
- Route Object
getRawPointer() → {object}
Returns emscripten object
- Inherited From
- Type:
- object
isDeleted() → {boolean}
Check if emscripten object has been deleted
- Inherited From
- Type:
- boolean
push_back(object)
Name | Type | Description |
---|---|---|
object | object |
- Inherited From
setAvoidBikingHillFactor(fValue)
Set avoid biking hill factor
Name | Type | Description |
---|---|---|
fValue | number | 0.0 - no avoidance, 1.0 - full avoidance |
setAvoidFerries(bValue)
Set the avoid ferries flag.
Name | Type | Description |
---|---|---|
bValue | boolean |
setAvoidMotorways(bValue)
Set the avoid motorways flag. Default is false
Name | Type | Description |
---|---|---|
bValue | boolean |
setAvoidTollRoads(bValue)
Set the avoid toll roads flag.Default is false
Name | Type | Description |
---|---|---|
bValue | boolean |
setAvoidTraffic(bValue)
Enable/disable traffic information usage for route calculation.Default is false.
Name | Type | Description |
---|---|---|
bValue | boolean |
setAvoidUnpavedRoads(bValue)
Sets the avoid unpaved roads flag.
Name | Type | Description |
---|---|---|
bValue | boolean |
setBikeProfile(bikeProfile)
Set Bike Profile
Name | Type | Description |
---|---|---|
bikeProfile | gem. | Set the bike profile to be used for the route calculation. |
setBikeProfileWithElectricType(bikeProfile, electricBikeProfile)
Set Bike Profile and Electric bike profile
Name | Type | Description |
---|---|---|
bikeProfile | gem. | |
electricBikeProfile | gem. |
setBuildTerrainProfile(bValue)
Enable terrain profile build
Name | Type | Description |
---|---|---|
bValue | boolean |
setEVProfile(evProfile)
Name | Type | Description |
---|---|---|
evProfile | gem. |
setPathAlgorithm(pathAlgorithm)
Sets the path calculation algorithm
Name | Type | Description |
---|---|---|
pathAlgorithm | gem. |
setResultDetails(resultDetails)
Set result details
Name | Type | Description |
---|---|---|
resultDetails | gem. |
setRouteRanges(routeranges)
Set route ranges list.A non empty range list will generate an isocost range route result
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
routeranges | object | Properties
|
setRouteType(routeType)
Set the route type.
Name | Type | Description |
---|---|---|
routeType | gem. |
setTransportMode(transportMode)
Sets the transport mode.
Name | Type | Description |
---|---|---|
transportMode | gem. |
size() → {number}
- Overrides
- the number of calculated routes.
- Type:
- number