Methods
getElevationSamples(nrOfSamples, beginMeter, endMeter) → {vector.<int>}
Get elevation samples list
Parameters:
Name | Type | Description |
---|---|---|
nrOfSamples | number | Number of samples |
beginMeter | number | Begin distance on route for sample interval |
endMeter | number | End distance on route for sample interval |
Returns:
- return Elevation samples
- Type:
- vector.<int>
getNavigationInstructionSection(nId) → {gem.routesAndNavigation.RouteInstructionList}
Get the list of navigation instruction for specified route section
Parameters:
Name | Type | Description |
---|---|---|
nId | number | id for the route section |
Returns:
- routeInstructionList
getNavigationInstructionSectionsSize() → {number}
Get route sections size
Returns:
- number of route sections
- Type:
- number
getTerrainRoadTypeSection() → {vector.<gem.routesAndNavigation.RoadTypeSection>}
Get list of route sections which are of type road, typically, paved.
Returns:
- Type:
- vector.<gem.routesAndNavigation.RoadTypeSection>
getTerrainSteepeSections(profileVector) → {vector.<gem.routesAndNavigation.SteepSection>}
Get list of route sections which are abrupt, that is, they have a significant elevation change.
Parameters:
Name | Type | Description |
---|---|---|
profileVector | vector.<float> | categs The user list of steep categories. Each entry contains the max slope for the steep category as diffX / diffY. |
Returns:
- A positive value is for an ascension category, a negative value if a descent category
- Type:
- vector.<gem.routesAndNavigation.SteepSection>
getTerrainSurfaceTypeSection() → {vector.<gem.routesAndNavigation.SurfaceSection>}
Get list of route sections which are flat, that is, no significant elevation change.
Returns:
- Type:
- vector.<gem.routesAndNavigation.SurfaceSection>
getTotalDistanceMAndTimeS() → {gem.core.TimeAndDistance}
Get length in meters and estimated travel time in seconds for the route
Returns:
- Type:
- gem.
core. TimeAndDistance
getTrafficEvents() → {gem.routesAndNavigation.RouteTrafficEventList}
Get list of traffic events affecting the route.
Returns:
- list of traffic events along the route