REST API, Service version 1.0.0
Routing#
Performs route computations through the road network. Also performs isochrone and origin destination matrix calculations.
Summary#
- Request
- Mandatory parameters
- Optional parameters
- Response
- Details of fields
- Response samples
Request#
The request must be sent with the HTTP method POST and the HTTP header Content-Type set to application/json.
Sample:
URI: /bgis/service/routing/1.0 for JSON default format.
Or URI: /bgis/service/routing/1.0.csv for CSV output format.
POST data:
{
"destinations": [
{
"coordinateSat" : {
"lon" : 7.41059,
"lat" : 43.73446
}
},
{
"coordinateSat" : {
"lon" : 7.15376,
"lat" : 43.72189
}
},
{
"coordinateSat" : {
"lon" : 7.15092,
"lat" : 43.66244
}
},
{
"coordinateSat" : {
"lon" : 7.12901,
"lat" : 43.62986
}
}
],
"routingVehicleProfile" : {
"transportMode" : "CAR",
"routingVehicleFeature" : {
"height" : 380,
"width" : 40,
"length" : 1875,
"weight" : 35,
"axleWeight" : 10
}
},
"routingMode" : "MODE_VIAS",
"routingCriterias" : [ "FASTEST" ],
"outputLanguage": "fr"
}All coordinates are defined by longitude and latitude, see the coordinate system glossary for more details.
Parameters#
destinationsRoutingDest[]requiredA list of coordinates that will be used to perform the routing calculation, isochrone, matrix, etc. The number of required coordinates depends of the selected routing mode (see
routingModeparameter).RoutingDest fields
coordinateSatCoordinateSatGPS coordinates.
CoordinateSat fields
lonnumber (double)requiredLongitude in degrees decimal (WGS84).
Also accepted as
longitude.latnumber (double)requiredLatitude in degrees decimal (WGS84).
Also accepted as
latitude.headingnumber (double)Heading in degrees.
speednumber (float)Speed in km/h.
timeinteger (int64)GPS time in milliseconds (EPOCH).
satinteger (int32)Number of GPS satellites available.
radiusinteger (int64)Radius in meters of the waypoint. This radius defines the maximum distance the route calculation should approach the waypoint.
ignorePointbooleanDefines if this waypoint is ignored by the route calculation.
ignoreTrafficDirectionsbooleanDefines if traffic directions should be ignored by route calculation between this waypoint and next one.
ignoreRoadBlocksbooleanDefines if road blocks should be ignored by route calculation between this waypoint and next one. See the
routingRoadBlocksparameter.ignoreRestrictionsbooleanDefines if forbidden maneuvers and blocked passages should be ignored by route calculation between this waypoint and next one.
avoidUTurnenumDefines if a UTurn should be avoided by route calculation on this waypoint.
3 accepted values
UNDEFStatus undefined. YESStatus yes. NOStatus no. useStartAngleenumIf set to
YESand waypoint is located on a two-way road and heading is defined, waypoint's heading will be used as a general direction for departure from this waypoint. See theheadingparameter.3 accepted values
UNDEFStatus undefined. YESStatus yes. NOStatus no. useStopRoadSideenumDefines if route calculation must arrive on this waypoint on its side (if waypoint is on a two-way road).
3 accepted values
UNDEFStatus undefined. YESStatus yes. NOStatus no. keptByMinimalWpbooleanThis parameter
keptByMinimalWp(previouslymandatory) will be used by the traceroute API. When the value is set totrueand the optionNO_MINIMAL_WAYPOINTSis not defined, the waypoint will be kept in the way-points response array.Also accepted as
mandatory.stopDurationinteger (int32)Stop duration in seconds associated to the destination coordinate.
customDataCustomDt[]Custom data is a list that can be used to set some custom information about the waypoint in input and retrieve in response.
CustomDt fields
keystringvaluestring
geoserverstringGeoserver name.
swidxinteger (int32)deprecatedSwitch index.
routingModeenumDefines the route calculation mode. Default is
MODE_VIAS.6 accepted values
MODE_VIASComputes a serie of routes between successive couples of via coordinates. Examples: from C1 to C2 OR from C1 to C2 to ... to Cn. MODE_1_TO_NComputes routes between a start coordinate to a list of destination coordinates. Examples (Cd is departure): from Cd to C1 OR from Cd to C1, from Cd to C2, ..., from Cd to Cn. MODE_N_TO_1Computes routes between a list of start coordinates to a destination coordinate. Examples (Ca is arrival): from C1 to Ca OR from C1 to Ca, from C2 to Ca, ... from Cn to Ca. MODE_N_TO_NComputes n² routes between each couples of a list of n coordinates. MODE_MATRIXComputes a n x p matrix of path weights between each pair of a list of origin and destination coordinates. Path weights are defined in seconds if FASTESTmode, meters ifSHORTESTmode or Wh (Watt-hour) ifECO_ENERGYmode.MODE_ISOCHRONEBuilds an isochrone polygon around one or two coordinates. With 1 coordinate: Builds an isochrone polygon representing the area that can be reached through the road network starting from this coordinate with a given limit of time or distance or energy. With two coordinates: Build the isochrone polygon representing the area that can be reached through the road network starting from start, ending at stop and with a given limit of time or distance or energy. routingCriteriasenum[]Criteria used to perform the routing calculation like shortest, fastest. Comma-separated list of one or more criteria. If empty or not set the default value is
FASTEST.10 accepted values
FASTERFind the route which optimizes travel time. FASTESTFind the route which optimizes travel time. Default value. SHORTESTFind the route which optimizes travel distance. ECO_ENERGYFind the route which optimizes travel energy consumption. AVOID_FERRIESFinds a route which avoids ferries. AVOID_MOTORWAYSFinds a route which avoids motorways. AVOID_TOLLSFinds a route which avoids tolls. AVOID_UNPAVEDFinds a route which avoids unpaved roads. AVOID_CROSSING_BORDERFinds a route which avoids country border crossings (only when all coordinates are in a same country). CARPOOLFinds a route which avoids roads reserved to carpooling. preferredRoadsRoutingPrefRoad[]Defines speed coefficients for specific road attributes. Only when fastest criterium is set. This parameter can be repeated.
RoutingPrefRoad fields
factornumber (float)requiredSpeed coefficient. This coefficient will alter the speed defined in the map data. If < 1 it will slow down the speed, if > 1 it will increase the speed (1 = unchanged). Range ]0, 256].
routingRoadAttributeenumrequiredDefines the road's attribute associated to the specific speed coefficients (
factorparameter).25 accepted values
PREFERRED_UNDEFINEDRoads belonging to preferred undefined network. PREFERRED_STAARoads belonging to preferred STAA network. PREFERRED_NATIONAL_ACCESSRoads belonging to preferred national access network. PREFERRED_TRUCK_ROUTERoads belonging to preferred route truck network. PREFERRED_TRUCK_BYPASSRoads belonging to preferred bypass truck network. PREFERRED_TRUCK_LOCALRoads belonging to preferred local truck network. PREFERRED_HAZMAT_NRHMRoads belonging to preferred NRHM hazmat network. PREFERRED_HAZMAT_EXPLOSIVESRoads belonging to preferred explosive hazmat network. PREFERRED_HAZMAT_PIHRoads belonging to preferred PIH hazmat network. PREFERRED_HAZMAT_MEDICALRoads belonging to preferred medical hazmat network. PREFERRED_HAZMAT_RADIOACTIVERoads belonging to preferred radioactive hazmat network. PREFERRED_HAZMAT_GENERALRoads belonging to preferred general hazmat network. PREFERRED_TOURIST_SCENICRoads belonging to preferred tourist scenic roads. PREFERRED_TOURIST_HISTORICRoads belonging to preferred tourist historic roads. PREFERRED_B_DOUBLESRoads belonging to preferred B-Doubles. PREFERRED_TOURIST_NATIONALRoads belonging to preferred tourist national route. PREFERRED_TOURIST_REGIONALRoads belonging to preferred tourist regional route. PREFERRED_TOURIST_NATURERoads belonging to preferred tourist nature route. PREFERRED_WEIGHT_DEPENDENTRoads belonging to weight dependent preferred network. TOLL_ROADRoads with tolls. BUILT_UPRoads belonging to built-up areas. TUNNELRoads in tunnels. BRIDGERoads on bridges. TAXRoads submitted to government tax (like German MAUT, etc.). CARPOOLRoads reserved to carpooling. routingPonderationTypeenumDefines if speed coefficient applies only for searching the fastest route or for calculating the route's travel time (ETA) or both.
ALLby default.3 accepted values
ALLSpeed coefficient applies both for finding the fastest route and calculating its ETA. Default value. CALSpeed coefficient applies only searching for the fastest route (only when fastest criteria is set). ETASpeed coefficient applies only for calculating route's travel time (ETA).
routingRoadBlocksRoutingRoadBlck[]List of road blocks. Specifies a location where route must not go through.
RoutingRoadBlck fields
objectIdBase64stringSegment object ID to apply the road block.
coordinateCoordinateCoordinate WGS84.
headinginteger (int32)Heading in degrees (optional).
uniDirectionalbooleanIf true, this road block will only apply in direction defined by a heading (optional). Applies only if a
headingparameter has been definedponderationnumber (float)The speed coefficient in range [0, 256] of this road block (0 will close the road segment).
ponderationTypeenumDefines if speed coefficient applies only for searching the fastest route or for calculating the route's travel time (ETA) or both.
ALLby default.3 accepted values
ALLSpeed coefficient applies both for finding the fastest route and calculating its ETA. Default value. CALSpeed coefficient applies only searching for the fastest route (only when fastest criteria is set). ETASpeed coefficient applies only for calculating route's travel time (ETA).
avoidCountryCodesstring[]List of country code will be avoided. The ISO3166 Alpha3 country code of the country to add.
optionsenum[]Comma-separated list of one or more options.
63 accepted values
MAPMATCH_AVOID_TUNNELAvoid tunnel during the map matching of input coordinates. MAPMATCH_AVOID_BRIDGEAvoid bridge during the map matching of input coordinates. STARTSTOPINFO_WITHVIAReturns the start/stop information with via coordinates found by the routing calculation. ROUTESHEETReturns the route sheet. ROUTESHEET_VERBOSE_LOWLow level of verbosity for the route sheet (default). ROUTESHEET_VERBOSE_MEDIUMMedium level of verbosity for the route sheet. ROUTESHEET_VERBOSE_HIGHHigh level of verbosity for the route sheet. FENCE_SHAPEEnables the tests between route found and geometric fences. Return the shape of fence used to perform the test. POLYLINEReturns the polyline geometry of the entire itinerary. For segmentation of this geometry, see the EVENTandEVT_POLYINEoptions.DETAILED_POLYLINEReturns the polyline geometry of the itinerary with more information for each sub-segments. Deprecated, use events system (like EVENT,EVT_POLYLINE) instead.POLYLINE_INDEXEnables the index calculation of the used destination on the polyline. Deprecated, use events system (like EVENT,EVT_POLYLINE) instead.OPENLRAttempt to return the geometry of the route as an encoded OpenLR base64 string. Some routes cannot be encoded in OpenLR (like U-turns). SEGMENTIDSReturns the list of segment id of itinerary. ROAD_SEGMENTSReturns the list of road segments of the itinerary. See in response the field roadSegments.JUNCTION_NODESReturns the junction nodes of the itinerary. See in response the field junctionNodes.WAYPOINTSReturns the waypoints of itinerary. A waypoint is a coordinate with properties that can be used to reproduce the computed route on other device or server. MINIMAL_WAYPOINTSSub option of WAYPOINTSoption. Enables the minimal waypoints algorithm. By default the waypoint list contains all waypoints. This option reduces the list to the necessary waypoints to reproduce the route.WAYPOINTS_POLYLINEReturns the polyline of the route including the waypoints coordinate. TRAFFICUse the traffic info for routing. TRAFFIC_PREDICTIVEUse the predictive traffic info for routing. TRAFFIC_PATTERNSNeed the additional DepartureTimeorarrivalTimeparameter to work. Use the traffic patterns for routing. This option does not have any effect if the loaded SVS map data does not contain either the HERE Traffic Patterns or TomTom Speed Profiles databases.OPTIMIZED_TRIPComputes an optimized travel through location points. Keep the start and stop points. An optional departure date time (local time) to be used for time dependent restrictions and speeds. OPTIMIZED_TRIP_ROUNDSee OPTIMIZED_TRIPoption. Keep the start and come back to the initial point, but don't close the route. To close the route addOPTIMIZED_TRIP_CLOSEDoption.OPTIMIZED_TRIP_UNDEFSTOPSee OPTIMIZED_TRIPoption. Trip from a start point to an undefined final point.OPTIMIZED_TRIP_CLOSESee OPTIMIZED_TRIPoptions. Close the route by performing a routing calculation between the end point and the start point of ordered input coordinates.ENERGY_CONSUMPTIONReturns the energy consumption estimation ( energyConsumptionfield). This option requires the Energy vehicle feature, see fieldroutingVehicleProfileand sub fieldroutingEnergyVehicleFeature.TOLL_COSTEnables the toll cost calculation. This option requires the Vehicle Profile, see field routingVehicleProfileand sub fieldroutingVehicleFeature. Contact the support for the required map data. Deprecated replaced by EVT_TOLL_COST option.TAX_COSTEnables the tax cost calculation. This option requires the Vehicle Profile, see field routingVehicleProfileand sub fieldroutingVehicleFeature. Contact the support for the required map data. Deprecated replaced byEVT_TAX_COSToption.ECO_TAXEnables the eco-tax calculation. The Vehicle feature (vf) and Euro emission class are mandatory. You can use the additional DepartureTime parameter. Deprecated replaced by EVT_TAX_COSToption.SORTBY_USED_ORDERSort the UsedDestinations section by the value of useOrderfield.REVGEO_STRICT_DISABLEDisables the exception event when a coordinate entry is not found. REVGEO_POSTAL_ADDRESSReturns the postal addresses of matched input coordinates. ISOCHRONE_FORWARDIsochrone is built in the direction of traffic flow. ISOCHRONE_BACKWARDIsochrone is built in reverse direction of traffic flow. (by default). OPTIMIZED_ROUTE_FOR_CHARGING_STATIONOptimizes electric vehicles charges. Checks if the route is feasible with the. current vehicle profile and the given smart routing profile. If not, the method will try to find optimal (according to the criteria used to compute the route) charging stops. Deprecated used the EV Smart Routing API instead. MATRIX_COMPLEMENTMatrix complement's path weights are defined in meters if fastest mode, seconds otherwise. Also, for performance question, these weights are calculated only for couples of points which are close to each other. For other couples of points, the default value of complement is 0x0FFFFFFF. MATRIX_FOR_ROUND_OPTIMWhen using the MODE_MATRIX routing mode, this option allows faster matrix computations (by ignoring some coefficients of the matrix) if the returned matrix is intended to be consumed by an external Round Trip Optimization service. Indicates if this method is used to make a round optimization (and therefore number of destination = 0). I this case, some coefficients of the matrix will not be calculated as it is assumed they are not relevant for the route optimization. This allows a faster matrix computation. EVENTEnables structure of events on road. See sub options EVT_xxxxxother values. At a minimum the information returned is the country code of every road segment. Each event indicates the distance, travel time and percentage from start.EVT_DUPLICATE_FILTERSub option of EVENToption. Enables filter on repeated values. Avoids repeating events on every road segments when there are no changes.EVT_ENTRY_VALUE_AS_OBJECTSub option of EVENToption. Enables generation of entrie's values as a JSON object instead of encapsulating in a string format.EVT_ROAD_FEATURESub option of EVENToption. Enables the road features such as: maximum speed, bridge, tunnel, number of lanes in each direction, etc.EVT_PROHIBITED_DRIVINGSub option of EVENToption. Enables the prohibited driving information like against traffic direction (againstTrafficDir), prohibited turn (prohibitedTurn) and prohibited blocked passage (prohibitedBlockedPassage).EVT_ELEVATIONSub option of EVENToption. Enables the elevation of road segments. Returns the altitude of first point and last point in two entries. Deprecated, useEVT_ELEVATION2instead.EVT_ELEVATION2Sub option of EVENToption. Enables the elevation of road segments. Returns the altitude of first point and last point in one entry.EVT_OBJECTID_BASE64Add object ID information encoded in base64. An BeNomad Object ID is linked to a map data release. EVT_SEGMENT_INFOSub option of EVENToption. Enables the road segments information. Returns the ID of road segment (if available in the map data) and the reverse direction flag that indicates if the road segment is traveled in the opposite direction of the geometry of the road in map data.EVT_GEOELEMENT_TYPESub option of EVENToption. Enables the road segment type: The administrative levels (roadAdminLevelparameter):FOURTH_ROAD,TERTIARY_ROAD,SECONDARY_ROAD,MAIN_ROAD. And thegeoElementTypeparameter:PEDESTRIAN,ROUNDABOUT,SLIP_ROAD,ROAD,MOTORWAY,FERRYEVT_POLYLINESub option of EVENToption. Enables the polyline geometry.EVT_ENCODED_POLYLINESub option of EVENToption. Enables the encoded polyline geometry.EVT_LENGTHSub option of EVENToption. Enables length in meters of road segment.EVT_DURATIONSub option of EVENToption. Enables estimated travel duration in seconds of road segment.EVT_ENERGY_CONSUMPTIONSub option of EVENToption. Enables the autonomy limit event estimation. Additionally this option requires the Energy vehicle feature (routingEnergyVehicleFeature) parameter. The returnedenergyEndOfAutonomyAtfield indicates the distance in meters from start. The returnedenergyEndOfAutonomyCoordfield indicates the location of the autonomy limit.EVT_ENERGY_CONSUMPTION_SAMPLESub option of EVENToption. Enables the energy consumption estimation with samples data in events structure. Additionally this option requires the Energy vehicle feature (routingEnergyVehicleFeature) parameter. The returned energy sample (EnergySample) contains the following fields for each second:distFromStartin meters,speedin m/s,accelerationin m/s²,anglein degrees,slope(coefficient),cumulativeConsumptionin Wh,poscoordinate (WGS84) and altitude in meters of event.EVT_CHARGING_STATIONSub option of EVENToption. Add electrical charging station information (static data). Deprecated Use the API Charging Station.EVT_CHARGING_STATION_DYNAMICSub option of EVENToption. Add electrical charging station information (dynamic data). Deprecated Use the API Charging Station.EVT_TOLL_COSTSub option of EVENToption. Enables the toll cost calculation. This option requires the Vehicle Profile, see fieldroutingVehicleProfileand sub fieldroutingVehicleFeature. Contact the support for the required map data. See the response structureRoutingTollCstandTolof entry typeTollCost. Contact the support for the required map data.EVT_TAX_COSTSub option of EVENToption. Enables the tax cost calculation. This option requires the Vehicle Profile, see fieldroutingVehicleProfileand sub fieldroutingVehicleFeature. Contact the support for the required map data. See the response structureRoutingTaxCstandRoutingTaxSectof entry typeTaxCost. Contact the support for the required map data.EVT_TRAFFICSub option of EVENToption. Returns the real time traffic info in event structure of typeTrafficElement. The information contains thejamFactorin percentage,reason(text),currentAvrSpeedin km/h,freeFlowAvrSpeedin km/h, etc. NOTE: This option does not affect the route calculation, use the optionTRAFFICfor that. Contact the support for the required map data.EVT_TRAFFIC_PREDICTIVESub option of EVENToption. Returns the real time predictive traffic info in event structure of typeTrafficElement. The information contains thejamFactorin percentage,reason(text),currentAvrSpeedin km/h,freeFlowAvrSpeedin km/h, etc. NOTE: This option does not affect the route calculation. The route calculation is never affect by predictive traffic. Contact the support for the required map data.EVT_TRAFFIC_HISTORICAL(Beta) Sub option of EVENToption. Returns the historical traffic info (i.e. the real time in the past) in event structure of typeTrafficElement. Requires adepartureTimein the past. The information contains thejamFactorin percentage,reason(text),currentAvrSpeedin km/h,freeFlowAvrSpeedin km/h, etc. NOTE: This option does not affect the route calculation. The route calculation is never affect by predictive traffic. Contact the support for the required map data.EVT_ROUTESHEETSub option of EVENToption. Enables the route-sheet turn-by-turn instructions in event structure with typeRoutesheet. See the classRoutingInstruc.EVT_TRAFFIC_SIGNSSub option of EVENToption. Enables the traffic sign information in event structure with typeTrafficSign.text(optional) text displayed below traffic sign,matchedCoordinatelocation of traffic sign,category, see available values:NOT_SUPPORTED,ROAD_NARROWS,SHARP_CURVE_LEFT,SHARP_CURVE_RIGHT,WINDING_RD_LEFT,WINDING_RD_RIGHT,STEEP_HILL_UP,STEEP_HILL_DOWN,LATERAL_WIND,GENERAL_WARNING,RISK_OF_GROUNDING,GENERAL_CURVE,GENERAL_HILL,OBJECT_OVERHANG,ST_NO_OVERTAKING,END_NO_OVERTAKING,PR_OVERTAKING_EL,PR_OVERTAKING_ELR,PR_OVERTAKING_ELL,LANE_MERGE_RIGHT,LANE_MERGE_LEFT,LANE_MERGE_CENTER,RAILWAY_CROSS_PR,RAILWAY_CROSS_UNPR,ST_NO_OVERTAKING_TRUCKS,END_NO_OVERTAKING_TRUCKS,STOP,END_OF_ALL_RESTRICTIONS,ANIMAL_CROSSING,ICY_CONDITIONS,SLIPPERY_ROAD,FALLING_ROCKS,SCHOOL_ZONE,TRAMWAY_CROSSING,CONGESTION_HAZARD,ACCIDENT_HAZARD,PRIORITY_ONCOMING,YIELD_ONCOMING,RIGHT_PRIORITY,PEDESTRIAN_CROSSING,YIELD,NO_ENGINE_BRAKE,ENDOF_NO_ENGINE_BRAKE,NO_IDLING,TRUCK_ROLLOVER,LOW_GEAR,ENDOF_LOW_GEAR,LIGHT,DOUBLE_HAIRPIN,TRIPLE_HAIRPIN,TWO_WAY_TRAFFIC,URBAN_AREA,HUMP_BRIDGE,UNEVEN_ROAD,BICYCLE_CROSSING,YIELD_TO_BICYCLES,NO_TOWED_CARAVAN,NO_TOWED_TRAILER,NO_CAMPER,NO_TURN_ON_RED,TURN_ON_RED,EMBANKMENT,FLOOD_AREA,OBSTACLE,ROAD_SPLIT.EVT_WAYPOINTSSub option of EVENToption. Returns the waypoints of route in event structure. A waypoint is a coordinate with properties that can be used to reproduce the computed route on other device or server.routingVehicleProfileRoutingVehicleProfA routing vehicle profile defines physical, legal, toll and energetic characteristics.
RoutingVehicleProf fields
transportModeenumDefines the transportation mode: Car, pedestrian, truck, etc. Default value is
CAR, except for Traceroute service for which default value isEMERGENCY. The map data contains information which are related to transportation mode such as: traffic directions, turn restrictions and road accessibility. Therefore the transportation mode can affect the route calculation.9 accepted values
PEDESTRIANPedestrian. BICYCLEBicycle. MOTORCYCLEMotorcycle. CARPassenger car. TAXITaxi. PUBLIC_BUSPublic bus. EMERGENCYEmergency vehicle. DELIVERY_TRUCKDelivery truck. Deprecated, use TRUCKinstead.TRUCKTruck. maxSpeedsRoutingMaxSpd[]Defines a maximum speed in km/h for the vehicle. It is possible to discriminate two different maximum speeds: one to be used for route calculation (
CAL) and another one for route time estimation (ETA). By default (ALL) the speed applies to both cases.RoutingMaxSpd fields
maxSpeedinteger (int32)Specifies a maximum speed for a vehicle in km/h.
typeenumDefines if max speed should be used for route calculation (
CAL) and/or for route time estimation (ETA). By default (ALL) the speed applies to both cases.3 accepted values
ALLMaximum speed apply to route calculation and to route ETA. CALMaximum speed apply only to route calculation. ETAMaximum speed apply only to route ETA.
routingVehicleFeatureRoutingVehicleFtrDefines the routing vehicle feature. A routing vehicle feature defines physical, legal and toll characteristics.
RoutingVehicleFtr fields
heightinteger (int32)Height of vehicle in centimeters. Affects route calculation. Physical restriction.
widthinteger (int32)Width of vehicle in centimeters. Affects route calculation. Physical restriction.
lengthinteger (int32)Length of vehicle in centimeters. Affects route calculation. Physical restriction.
weightinteger (int32)Weight of vehicle in tens of metric tons, i.e.:
35= 3.5t. Affects route calculation. Legal and physical restrictions.axleWeightinteger (int32)Axle weight in tens of metric tons, i.e.:
12= 1.2t. Affects route calculation. Legal and physical restrictions.hazardousMaterialsenumHazardous materials carried by the vehicle. Affects route calculation. Legal restriction.
25 accepted values
NONENo hazardous material. ALLGeneral hazardous materials. EXPLOSIVETrucks with Explosive and Flammable Goods. WATERTrucks with Goods Harmful for Water. US_CORROSIVEUSA only : Corrosive materials (e.g., hydrochloric acid, sulfuric acid, mercury, sodium hydroxide). US_EXPLOSIVESUSA only : Explosives (e.g., TNT, ammunition, flares, fireworks). US_FLAMUSA only : Flammable and combustible liquids (e.g., jet fuel, gasoline, fuel oil, alcohols). US_FLAM_SOLUSA only : Flammable solids, spontaneously combustible materials and water reactive substances (e.g., matches, white phosphorus, potassium). US_GASUSA only : Flammable, compressed and poisonous gases (e.g., propane, compressed oxygen, chlorine). US_ORGANICUSA only : Oxidizers and organic peroxides (e.g., ammonium nitrate and benzoyl peroxide). US_OTHERUSA only : Miscellaneous hazardous materials (e.g., asbestos, dry ice, lithium batteries). US_PIHUSA only : Poisonous inhalation hazards (PIH). US_POISONUSA only : Poisonous (toxic) and infectious substances (e.g., cyanide, most mercury-based compounds, viruses, toxins and regulated medical waste). US_RADIO_ACTIVEUSA only : Radioactive materials (e.g., plutonium-239 and uranium-235). TUNNEL_CAT_BTunnel Category B. TUNNEL_CAT_B1000CTunnel Category B1000C. TUNNEL_CAT_BDTunnel Category B/D. TUNNEL_CAT_BETunnel Category B/E. TUNNEL_CAT_CTunnel Category C. TUNNEL_CAT_C5000DTunnel Category C5000D. TUNNEL_CAT_CDTunnel Category C/D. TUNNEL_CAT_CETunnel Category C/E. TUNNEL_CAT_DTunnel Category D. TUNNEL_CAT_DETunnel Category D/E. TUNNEL_CAT_ETunnel Category E. nbTrailerinteger (int32)Vehicle's number of trailers (
-1: not defined,0: no trailer). Affects route calculation. Legal restriction.tollTransportCategoryenumDefines the toll vehicle category. Affects toll calculation.
UNDEFINEDby default.13 accepted values
UNDEFINEDUndefined. MOTORCYCLEMotorcycle. AUTOAutomobile. TRUCKTruck. MOTOR_HOMEMotor home. MINIBUSMini bus. BUSBus. SIDECARSidecar (EU only). TRICYCLETricycle (EU only). DLV_TRUCKDelivery truck (EU only). SNOWMOBILESnowmobile (US only). PICK_UPPick up (US only). TRACTORTractor (US only). caravanenumDefines if the vehicle has a caravan. Affects toll calculation.
UNDEFINEDby default.3 accepted values
UNDEFINEDUndefined. YESYes. NONo. hybridenumDefines if vehicle has a hybrid engine. Affects toll calculation.
UNDEFINEDby default.3 accepted values
UNDEFINEDUndefined. YESYes. NONo. disEquippedenumDefines if vehicle is equipped for disabled people. Affects toll calculation.
UNDEFINEDby default.3 accepted values
UNDEFINEDUndefined. YESYes. NONo. pollMinenumDefines if vehicle has minimal pollution. Affects toll calculation.
UNDEFINEDby default.3 accepted values
UNDEFINEDUndefined. YESYes. NONo. hovenumDefines if vehicle is a High Occupancy Vehicle (USA only). See Wikipedia: High-occupancy vehicle lane. Affects toll calculation.
UNDEFINEDby default.3 accepted values
UNDEFINEDUndefined. YESYes. NONo. cialenumDefines if vehicle is a commercial vehicle. Affects toll calculation.
UNDEFINEDby default.3 accepted values
UNDEFINEDUndefined. YESYes. NONo. nbVehAxlesinteger (int32)Defines the number of axles of the vehicle (optional). Affects toll calculation.
nbTrailAxlesinteger (int32)Defines the number of axles of the trailer (optional). Affects toll calculation.
nbTiresinteger (int32)Defines the number of tires (optional). Affects toll calculation.
nbPassengersinteger (int32)Defines the number of passengers (optional). Affects toll calculation.
vehHeightinteger (int32)Defines vehicle's height in centimeters (optional, use field
heightto define total height : vehicle + trailer). Affects toll calculation.trailHeightinteger (int32)Defines trailer's height in centimeters (optional, use field
heightto define total height : vehicle + trailer). Affects toll calculation.vehWeightinteger (int32)Defines vehicle's weight in tens of tons (optional, use field
weightto define total weight : vehicle + trailer). Affects toll calculation.emissionClassenumDefines vehicle's emission type (optional). See Wikipedia: European emission standards. Affects toll calculation.
18 accepted values
UNDEFINEDUndefined. EURO1EURO I. EURO2EURO II. EURO3EURO III. EURO4EURO IV. EURO5EURO V. EURO6EURO VI. EURO_EEVEURO EEV. ELECTRICEURO Electric. EURO0EURO 0 EURO2_PRCEURO II with PRC (Particle Reduction Composite/System) EURO3_PRCEURO III with PRC (Particle Reduction Composite/System) EURO6_CO2_1EURO VI CO2 1 EURO6_CO2_2EURO VI CO2 2 EURO6_CO2_3EURO VI CO2 3 EURO6_CO2_4EURO VI CO2 4 EURO6_CO2_5EURO VI CO2 5 MAXMaximal value. adrTunnelCategoryenumADR tunnel category defines all supported ADR (EU only, European Agreement concerning the International Carriage of Dangerous Goods by Road). Affects route calculation.
5 accepted values
NONENo tunnel category restriction (category A). CAT_BTunnel Category B. CAT_CTunnel Category C. CAT_DTunnel Category D. CAT_ETunnel Category E. onlyPhysicalbooleanDefines if vehicle's weight (weight, weight per axle and trailers) and hazardous materials (hazardous materials and ADR) should be ignored outside respectively bridges and tunnels.
falseby default. Affects route calculation.
routingEnergyVehicleFeatureRoutingEnergyVehicleFtrEnergy vehicle feature for energy consumption estimation.
RoutingEnergyVehicleFtr fields
scxnumber (double)Product of vehicle's front area and aerodynamic coefficient (in m²).
crrnumber (double)Vehicle's tire rolling resistance coefficient (dimension-less, in interval ]0, 1[).
engineEfficiencynumber (double)Vehicle's efficiency coefficient between engine and gear (dimension-less, in interval ]0, 1[).
batCapacitynumber (double)Vehicle's capacity of the battery (in kWh, only if electric vehicle or hybrid re-chargeable, 0 otherwise).
energyLoadnumber (double)Vehicle's current energy load, state of charge (in kWh).
dryWeightinteger (int32)Vehicle's weight without any consumables or passengers (in kg).
payloadinteger (int32)Vehicle's extra load (consumables or passengers weight for example) (in kg).
auxConsumptioninteger (int32)Vehicle's instantaneous auxiliary equipments consumption (in W).
maxAccelnumber (double)Maximum acceleration (superior to 0.1, in m/s², based on vehicle's acceleration capacity and expected driving behavior).
maxDecelnumber (double)Maximum deceleration (inferior to -0.1, in m/s², based on vehicle's braking capacity and expected driving behavior).
extTempnumber (float)Outside temperature (in °C).
maxChargePowernumber (double)Maximum charge power AC single phase authorized by the vehicle (in kW).
maxChargePowerAc3number (double)Maximum charge power AC three phases authorized by the vehicle (in kW).
maxChargePowerDcnumber (double)Maximum charge power DC authorized by the vehicle (in kW).
regenerativeBrakingbooleanDefines if the vehicle supports regenerative braking (default = true).
routingEnergyVehicleConnectorTypeIdsinteger (int32)[]deprecatedConnector (plug) type of electrical vehicle, used for energy consumption estimation. Deprecated Use the API Charging Station.
routingEnergyVehicleRangesinteger (int64)[]deprecatedEnergy vehicle range. Define the pre-calculated electric vehicle autonomy in meters.
chargingStationProviderNamestringdeprecatedName of charging station provider used to research the chargning station pools. Deprecated Use the API Charging Station.
routingSpeedPonderationsRoutingSpeedPond[]Defines a speed coefficient for the specified road element's classification. Note: This parameter has no effect on the Traceroute service.
RoutingSpeedPond fields
factornumber (float)requiredSpecifies the speed coefficient. A value under 1 to reduce the speed, e.g: 0.8. A value over 1 to increase the speed, e.g: 1.3.
1by default.levelinteger (int32)requiredRoad element's level (0: all 4 levels, 1: main level, 2: secondary level, 3: third level, 4: fourth level).
roadTypeenumDefine the road type.
7 accepted values
ALLAll road network. DEFAULTDefault. FERRYFerry line. MOTORWAYMotorway. PEDESTRIANPedestrian. ROUNDABOUNTRoundabout. SLIPROADSlip road. pondTypeenumDefine the ponderation type.
3 accepted values
ALLSpeed coefficient applies both for finding the fastest route and calculating its ETA. Default value. CALSpeed coefficient applies only searching for the fastest route (only when fastest criteria is set). ETASpeed coefficient applies only for calculating route's travel time (ETA).
routingCrossPenaltiesCoefficientsRoutingCrossPenaltiesCoef[]Defines a cross-penalties coefficient for the specified road element's classification. Note: This parameter has no effect on the Traceroute service.
RoutingCrossPenaltiesCoef fields
factornumber (float)requiredNew coefficient factor for cross-penalties (Default = 1).
ptypeenumEnumeration taken into account by routing calculation. It defines if speed coefficient applies only for searching the fastest route (only when fastest criteria is set) or for calculating the route's travel time (ETA) or both.
3 accepted values
ALLSpeed coefficient applies both for finding the fastest route and calculating its ETA. Default value. CALSpeed coefficient applies only searching for the fastest route (only when fastest criteria is set). ETASpeed coefficient applies only for calculating route's travel time (ETA). typeenumDefines if a new coefficient applies to route calculation or to route ETA or both (Default = ALL).
3 accepted values
ALLSpeed coefficient applies both for finding the fastest route and calculating its ETA. Default value. CALSpeed coefficient applies only searching for the fastest route (only when fastest criteria is set). ETASpeed coefficient applies only for calculating route's travel time (ETA).
xyRadiusinteger (int32)Maximum search radius around GPS point.
startUTurnThresholdinteger (int32)Specifies the start UTurn threshold. This value determines, at start point or any via point for which a use start angle / avoid UTurn property is set, the threshold (in 1/10th seconds / meters / Wh in resp. FASTEST / SHORTEST / ECO mode) above which the property may be ignored (default = 3000). For instance, in SHORTEST mode, if the route from start to stop leaving start point in the desired direction is more than
startUTurnThresholdmeters longer than the route from start to stop leaving start point in the opposite direction, leave the start point in the opposite direction.departureTimestringThis parameter is an EPOCH timestamp in milliseconds (UTC) or a string with ISO local date time format like '2011-12-03T10:15:30', '2011-12-03T10:15:30+01:00' or '2011-12-03T10:15:30+01:00[Europe/Paris]'. It is used to define the date and time of routing departure.
arrivalTimestringUse this parameter to define the date and time of routing arrival. Can only work with 1 to 1 routing computation mode, no vias are currently permitted or another computation mode like 1 to n, n to 1, n to n and matrix. This parameter is an EPOCH timestamp in milliseconds (UTC) or a string with ISO local date time format like '2011-12-03T10:15:30', '2011-12-03T10:15:30+01:00' or '2011-12-03T10:15:30+01:00[Europe/Paris]'. It is used to define the date and time of routing arrival.
isoChroneLimitinteger (int64)The limit of the isochrone. Either meters, seconds or watt/hour depending on the criteria argument (meters if
SHORTEST, seconds ifFASTESTand Wh ifECO_ENERGY).corridorRadiusinteger (int32)Builds a corridor along the calculated route with the given radius. Corridor radius in meters (notes: the corridor width = 2 *
corridorRadius).fenceShapesGeoFenceShp[]Defines fence shapes to perform an intersection test between the route and the fences.
GeoFenceShp fields
centerCoordinaterequiredCenter of circle fence.
radiusinteger (int64)requiredRadius of circle fence.
verticesCoordinate[]requiredVertices of polygon fence.
idinteger (int64)The fence id. If value is negative the server will set it with an auto-incrementing number.
typeenumDefine the type of geometric shape of fence, like CIRCLE or POLYGON.
2 accepted values
CIRCLECircle. POLYGONPolygon.
outputLanguagestringDefines the preferred language that will be used by the options
ROUTESHEET,EVT_ROUTESHEET,REVGEO_POSTAL_ADDRESS, etc. Values of language code: An ASCII string that defines an (ISO 639-1)[https://fr.wikipedia.org/wiki/Liste_des_codes_ISO_639-1] (2-letter) language code.maxAlternativeRoutesinteger (int32)Define the maximum number of alternative routes (in range between 0 to 2).
routingChargeFeatureRoutingChargeFtrFeatures of Electrical charge used during the routing calculation.
RoutingChargeFtr fields
socAlertinteger (int32)SOC below which the driver does not want to descend (in % of the vehicle's battery's capacity).
socAtArrivalinteger (int32)Desired SOC at the arrival. If reachChargePointAtArrival is true, this is computed by the algorithm as the SOC to reach the closest charging pool at arrival.
reachChargePointAtArrivalbooleanSpecifies that the SOC at arrival must be sufficient to reach a suitable charge point (true by default).
connectorTypeIdFiltersinteger (int32)[]List of connector type ID to perform a filtration based on those values.
providersstring[]Optional list of authorized charge data providers (by default all providers are authorized).
matrixStartCountinteger (int32)Number of destination points (
xyparameter) to be used as start points (all other points will be used as stop points).0to disable: all destination points are used both as start and stop points.customDataCustomDt[]Custom data. The parameter customData can be repeated and contains a key and value.
CustomDt fields
keystringvaluestring
Response#
Details of fields#
usedDestinationsRoutingUsedDest[]List of used destinations according to the request. The coordinates used for routing calculation: includes the raw coordinates and the map matched coordinates.
RoutingUsedDest fields
inputOrderinteger (int32)Original order number of input coordinates.
usedbooleanIndicates if this coordinate has been used by the routing calculator.
usedOrderinteger (int32)Final order number of input coordinates. The order can be changed by options
OPTIMIZED_TRIP,OPTIMIZED_TRIP_CLOSE,OPTIMIZED_TRIP_ROUND,OPTIMIZED_TRIP_UNDEFSTOP.matchedCoordinateGpsCoordinateSatMap matched coordinate (i.e. snapped on a map road element).
CoordinateSat fields
lonnumber (double)requiredLongitude in degrees decimal (WGS84).
Also accepted as
longitude.latnumber (double)requiredLatitude in degrees decimal (WGS84).
Also accepted as
latitude.headingnumber (double)Heading in degrees.
speednumber (float)Speed in km/h.
timeinteger (int64)GPS time in milliseconds (EPOCH).
satinteger (int32)Number of GPS satellites available.
matchedPostalAddressAddressPostal address of map matched coordinate.
Address fields
countryCodestringISO code of country.
countrystringCountry name.
statestringState name.
countystringCounty name.
citystringCity name.
districtstringDistrict name of city.
postalCodestringPostal code.
roadNumberstringRoad number.
streetstringStreet name.
streetNumberstringHouse number.
oppositeStreetNumberstringdeprecatedOpposite street number.
confidenceValuenumber (double)Confidence score of map matched coordinate in range ]0,1].
distanceFromRequestnumber (double)Distance in meters between raw coordinate and map matched coordinate.
exceptionMessagestringThe exception message of the destination. Returned only when the option
REVGEO_STRICT_DISABLEis defined in request.polylineIndexinteger (int64)deprecatedThe index of corresponding coordinate in route's polyline. Only when the option
POLYLINE_INDEXis defined in request, otherwise the value is set to-1.waypointPolylineIndexinteger (int32)deprecateddurationinteger (int64)The travel time (ETA) in seconds from start coordinate of this destination.
lengthinteger (int64)The length in meters from start coordinate of this destination.
customDataCustomDt[]Custom data is a list that can be used to set some custom information about the destination in input.
CustomDt fields
keystringvaluestring
routingRoutesRoutingRt[]Defines a list of computed routes.
RoutingRt fields
exceptionMessagestringError message returned when the route is not feasible.
lengthinteger (int64)Length of route in meters.
durationinteger (int64)Total driving time in seconds.
totalDurationinteger (int64)The total duration in seconds represent the duration of travel + stop time.
trafficDelayinteger (int64)Delay in seconds due to real time traffic and statistical traffic.
departureTimeinteger (int64)arrivalTimeinteger (int64)averageSpeednumber (float)Average speed in km/h.
maximumSpeednumber (float)Maximum speed in km/h.
startUTurnThresholdinteger (int32)The start UTurn threshold. This value determines, at start point or any via point for which a use start angle / avoid UTurn property is set, the threshold (in 1/10th seconds / meters / Wh in resp. FASTEST / SHORTEST / ECO mode) above which the property may be ignored. For instance, in SHORTEST mode, if the route from start to stop leaving start point in the desired direction is more than
startUTurnThresholdmeters longer than the route from start to stop leaving start point in the opposite direction, leave the start point in the opposite direction.energyConsumptionnumber (double)Energy needed to travel route, in kWh. See options
ENERGY_CONSUMPTION,EVT_ENERGY_CONSUMPTION.routingTollCostRoutingTollCstTotal toll cost range along the route. See option
EVT_TOLL_COST.RoutingTollCst fields
tollsTol[]List of tolls.
Tol fields
tollTypeenumType of toll.
4 accepted values
TOLL_FIXED_FEEFixed fee (does not depend of origin). TOLL_OBTAIN_TICKETObtain ticket (no fee). TOLL_PAY_PER_TICKETPay per ticket (depends of origin). TOLL_ELECTRONICElectronic. meanOfPaymentsenum[]List of mean of payment.
8 accepted values
PAYMENT_CASHCash. PAYMENT_BANK_CARDBank card. PAYMENT_CREDIT_CARDCredit card. PAYMENT_PASS_SUBSCRIPTIONPass or subscription. PAYMENT_TRANSPONDERTransponder. PAYMENT_VIDEO_TOLL_CHARGEVideo toll charge. PAYMENT_EXACT_CASHExact cash. PAYMENT_TRAVEL_CARDTravel card. polylineIndexinteger (int64)Index of polyline coordinate.
tollChargesTollChrg[]List of toll charge.
TollChrg fields
currencystringCurrency unit in norm ISO 4217, more details on Wikipedia ISO 4217.
categorystringA textual definition of vehicle category.
pricenumber (double)Price.
coordinateCoordinateCoordinate of toll.
sumFeesRoutingSumF[]List of total toll fees of route. In most cases this list contains only one entry. Only when the toll fees along the route use several currencies will the list contains several entries (one for each currency).
RoutingSumF fields
currencystringCurrency in norm ISO 4217, more details on Wikipedia ISO 4217 https://en.wikipedia.org/wiki/ISO_4217.
feeMinnumber (double)The minimum fee.
feeMaxnumber (double)The maximum fee.
routingTaxCostRoutingTaxCstTotal tax cost range along the route. See option
EVT_TAX_COST.RoutingTaxCst fields
taxSectionsRoutingTaxSect[]List of tax sections.
RoutingTaxSect fields
taxCategoryenumTax category.
4 accepted values
TAX_CATEGORY_NONENo tax. TAX_CATEGORY_1Tax category 1. TAX_CATEGORY_2Tax category 2. TAX_CATEGORY_3Tax category 3. meanOfPaymentsenum[]List of mean of payment.
8 accepted values
PAYMENT_CASHCash. PAYMENT_BANK_CARDBank card. PAYMENT_CREDIT_CARDCredit card. PAYMENT_PASS_SUBSCRIPTIONPass or subscription. PAYMENT_TRANSPONDERTransponder. PAYMENT_VIDEO_TOLL_CHARGEVideo toll charge. PAYMENT_EXACT_CASHExact cash. PAYMENT_TRAVEL_CARDTravel card. countryCodestringThe ISO country code (ISO 3166 alpha 3) of current tax section.
lengthinteger (int32)Length of section in meters.
firstFrmIdxinteger (int32)Index of the first route's segment event of the tax section. See the options
EVENT,EVT_POLYLINE,EVT_SEGMENT_INFO.lastFrmIdxinteger (int32)Index of the last route's segment event of the tax section. See the options
EVENT,EVT_POLYLINE,EVT_SEGMENT_INFO.taxChargesTaxChrg[]List of tax charge.
TaxChrg fields
currencystringCurrency in norm ISO 4217, more details on Wikipedia ISO 4217 https://en.wikipedia.org/wiki/ISO_4217.
categorystringA textual definition of vehicle category.
pricenumber (double)Price.
sumFeesRoutingSumF[]List of total tax fees of route. In most cases this list contains only one entry. Only when the tax fees along the route use several currencies will the list contains several entries (one for each currency).
RoutingSumF fields
currencystringCurrency in norm ISO 4217, more details on Wikipedia ISO 4217 https://en.wikipedia.org/wiki/ISO_4217.
feeMinnumber (double)The minimum fee.
feeMaxnumber (double)The maximum fee.
routingInstructionsRoutingInstruc[]List of guidance instructions. Use
ROUTESHEEToption in request.RoutingInstruc fields
typeenumInstruction type.
11 accepted values
FOLLOWFollow. FOLLOW_SIGNFollow sign. TAKE_RAMPTake ramp. ENTER_MOTORWAYEnter in motorway. EXIT_MOTORWAYExit from motorway. ENTER_ROUNDABOUTEnter in roundabout. EXIT_ROUNDABOUTExit from roundabout. TAKE_FERRYTake ferry. LEAVE_FERRYLeave ferry. STOPStop. STOP_VIAStop on via. geoElementTypeenumGeo element type following instruction.
61 accepted values
ALL_ROADRoad types. PEDESTRIANROUNDABOUTSLIP_ROADROADMOTORWAYFERRYMAIN_ROADRoad levels. SECONDARY_ROADTERTIARY_ROADFOURTH_ROADCOUNTRYAdministrative. STATECOUNTYCITYDISTRICTPOSTAL_CODEBUILT_UP_AREA_NAUrban area information not available. BUILT_UP_AREA_NONENo urban area. BUILT_UP_AREA_MAINUrban area coverage size main, not an administrative area. BUILT_UP_AREA_MEDIUMUrban area coverage size medium (not an administrative area). BUILT_UP_AREA_SMALLUrban area coverage size small (not an administrative area). VEHICLE_REPAIRPOI. PETROL_STATIONRENT_A_CARPARKING_GARAGEHOTEL_MOTELRESTAURANTTOURIST_OFFICEMUSEUMTHEATRECULTURAL_CENTRESPORTS_ACTIVITYHOSPITALPOLICE_STATIONCITY_HALLPOST_OFFICEPHARMACYBANKCAMPINGSHOPPING_CENTRESTADIUMTOURIST_ATTRACTIONBUS_STATIONEXHIBITION_CENTERGOLF_COURSEGROCERY_STORELIBRARYMARINAHISTORICAL_MONUMENTBOWLINGCASINOCINEMASPORTS_CENTREBEACHSHOPOPERATENNIS_COURTMUSIC_CENTERAMUSEMENT_PARKZOOlengthinteger (int32)Distance in meters of current instruction.
durationinteger (int32)Duration in seconds of current instruction.
fromNamestringName of last road segment before the maneuver. In specified language define in request, if available in map data
fromPhonemestringPhonetic transcription of the name of last road segment before the maneuver. In specified language define in request, if available in map data
manoeuvreenumThe direction to follow.
10 accepted values
STRAIGHTStraight ahead. SLIGHT_LEFTTurn slight left. LEFTTurn left. SHARP_LEFTTurn sharp left. U_TURNMake a u-turn. SHARP_RIGHTTurn sharp right. RIGHTTurn right. SLIGHT_RIGHTTurn slight right. BEAR_LEFTBear left. BEAR_RIGHTBear right. coordinateCoordinatePosition of the maneuver.
roundAboutExitNumberinteger (int32)The exit number of a roundabout.
toNamestringName (or sign post) of first road segment after the maneuver. In specified language define in request, if available in map data
toOnstringReturns the Official Name of next route section (in specified language code if available).
toOnPhonemestringReturns phonetic transcription of the official name of next route section.
toPhonemestringPhonetic transcription of the name (or sign post) of first road segment after the maneuver. In specified language define in request, if available in map data
toRnstringRoute number of first road segment after the maneuver.
toRnPhonemestringPhonetic transcription of the route number of first road segment after the maneuver.
toSistringSign post to follow after the maneuver. In specified language define in request, if available in map data.
toSiPhonemestringPhonetic transcription of the sign post to follow after the maneuver. In specified language define in request, if available in map data.
textDiststringDistance instruction in human readable format can be used with text-to-speech.
textstringInstruction in human readable format can be used with text-to-speech.
polylineIndexinteger (int32)deprecatedIndex in route polyline's points array of first form of this instruction. Deprecated use instead
EVENT,EVT_ROUTESHEETwithEVT_POLYLINEorEVT_ENCODED_POLYLINE.
boundingBoxBoundingBoxBounding box of the route.
corridorGeometricPoly[]Corridor around the route. Use the parameter
corridorRadiusin request.fenceResultsGeoFenceRes[]List of tested fences.
GeoFenceRes fields
idinteger (int64)Unique ID of fence.
typeenumType of geometry.
2 accepted values
CIRCLECircle. POLYGONPolygon. fenceShapeGeoFenceShpShape of fence used to perform the test.
GeoFenceShp fields
centerCoordinaterequiredCenter of circle fence.
radiusinteger (int64)requiredRadius of circle fence.
verticesCoordinate[]requiredVertices of polygon fence.
idinteger (int64)The fence id. If value is negative the server will set it with an auto-incrementing number.
typeenumDefine the type of geometric shape of fence, like CIRCLE or POLYGON.
2 accepted values
CIRCLECircle. POLYGONPolygon.
positionStateenumDefines position state of tested coordinate on the fence geometry.
5 accepted values
INWARDDefines if the tested coordinate is an inward intersection. INSIDEDefines if the tested coordinate is in fence. OUTWARDDefines if the tested coordinate is an outward intersection. OUTSIDEDefines if the tested coordinate is out of fence. INTERSECTPosition is not completely inside or outside but the shapes are intersected. positionCoordinateThe coordinates of the intersection in WGS84.
timestampinteger (int64)The estimated time stamp of this intersection in milliseconds.
startStopInfoRoutingRouteStartStopInfInformation about the start and stop coordinates of a route found by the routing calculation.
RoutingRouteStartStopInf fields
startCoordinateStart (first) coordinate of the computed route.
stopCoordinateStop (last) coordinate of the computed route.
distanceFirstMatchednumber (double)Distance between first matched coordinate and the start coordinate of route found by the routing calculation. This distance is not 0 when the input matched coordinate is unaccessible.
distanceLastMatchednumber (double)Distance between last matched coordinate and the stop coordinate of route found by the routing calculation. This distance is not 0 when the input matched coordinate is unaccessible.
interDestsCoordinate[]List of intermediate destination coordinates reached by the computed route.
polylineCoordinate[]Route polyline geometry. See the option
POLYLINE.detailedPolylinesGeometricDetPolyline[]deprecatedPolyline geometry of itinerary with more information for each sub-segments. See the option
DETAILED_POLYLINE. Deprecated Use events system (likeEVENT,EVT_POLYLINE) instead.GeometricDetPolyline fields
coordinatesCoordinate[]Matched coordinate on a road.
lengthinteger (int64)Length of route segment in meters.
openLrBase64stringRoute geometry encoded as OpenLR (in base64 encoding).
segmentIdsinteger (int64)[]deprecatedList of segment ID of computed route.
roadSegmentsRoadSeg[]deprecatedRoute segments. Deprecated use events system (like
EVENT,EVT_SEGMENT_INFO,EVT_POLYLINE) instead.RoadSeg fields
countryCodestringCountry code (ISO).
idinteger (int64)ID of segment. -1 if information is not available.
reverseDirectionbooleanTrue if this segment has been reversed, false otherwise.
durationnumber (double)The duration in seconds to travel through this route segment. -1 if information is not available.
weightinteger (int64)The weight in seconds or meters to travel through this route, used only by isochrone calculation. -1 if information is not available.
fromCoordinateCoordinate of first point.
toCoordinateCoordinate of last point.
junctionNodesCoordinate[]deprecatedJunction nodes of route.
waypointsRoutingWaypnt[]Waypoints of route.
RoutingWaypnt fields
usedDestinationIndexinteger (int32)The index of the used destinations (destinations). -1 if not available.
polylineIndexinteger (int32)deprecatedThe index of the waypoint polyline. -1 if not available.
waypointPolylineIndexinteger (int32)The coordinate index of the waypoint polyline.
coordinateCoordinateCoordinate of waypoint.
anglenumber (double)Angle in degrees of the road segment (clock-wise).
radiusinteger (int64)Radius (in meters) of the waypoint.
uturnbooleanDefines if a UTurn is done on this via point.
ignorePointbooleanDefines if this waypoint is ignored by the planner for its route calculation.
ignoreTrafficDirectionsbooleanDefines if traffic directions should be ignored by route planner between this waypoint and next one.
ignoreRoadBlocksbooleanDefines if road blocks should be ignored by route planner between this waypoint and next one.
ignoreRestrictionsbooleanDefines if forbidden manoeuvres and blocked passages should be ignored by route planner between this waypoint and next one.
avoidUTurnenumDefines if a UTurn should be avoided (if possible) by route planner at this location.
3 accepted values
UNDEFStatus undefined. YESStatus yes. NOStatus no. useStartAngleenumIf set to
YESand location is on is on a 2 way road, location's angle will be used as a general direction for departure from location.3 accepted values
UNDEFStatus undefined. YESStatus yes. NOStatus no. useStopRoadSideenumDefines if route planner must arrive on this waypoint on waypoint's side (if waypoint is on a 2 way road).
3 accepted values
UNDEFStatus undefined. YESStatus yes. NOStatus no. offRoadRoutingOffRdPolyline representing the offroad section following this waypoint.
RoutingOffRd fields
geometryCoordinate[]Geometry representing the offroad section.
attributesAttributeItem[]Attributes.
AttributeItem fields
attributeCodeenumBeNomad Code of attribute.
132 accepted values
__NOT_MAPPEDNot mapped value. KEYKey. FEATURE_CLASS_CODEFCC = feature class code. INCLUSION_RELATIONLAB = Inclusion relation. SELF_REFFor SIV/VB SDK dynamic objects (self reference). ADMINISTRATIVE_CLASSAC = administrative class of a city (0: capital of a country, 1: capital of an order 1 area, etc.). ARABIC_ENGLISH_NAMEAE = ARABIC ENGLISH name (latin alphabet). ARABIC_NAMEAR = ARABIC name (arabic alphabet). ASSAMESE_NAMEAS = ASSAMESE name (alphabet). ASSAMESE_LATIN_NAMEAX = ASSAMESE_LATIN name (alphabet). AZERBAIJANI_NAMEAZ = AZERBAIJANI name. BELARUSIAN_NAMEBE = BELARUSIAN name (cyrillic alphabet). BULGARIAN_NAMEBG = BULGARIAN name (cyrillic alphabet). BULGARIAN_LATIN_NAMEBL = BULGARIAN name (latin alphabet). LANDMARKBM = 2D-Landmark meta data. BRAND_NAMEBN = brand name. BOSNIAN_NAMEBS = BOSNIAN name. BELARUSIAN_LATIN_NAMEBT = BELARUSIAN name (latin alphabet). BENGALI_NAMEBI = BENGALI name. BENGALI_LATIN_NAMEBX = BENGALI name (latin alphabet). CATALAN_NAMECA = CATALAN name. COUNTRY_CODECC = Country code. ENCODINGCH = character encoding. COORDINATE_TYPECO = coordinates' sytem. CZECH_NAMECS = CZECH name. WELSH_NAMECY = WELSH name. DANISH_NAMEDA = DANISH name. GERMAN_NAMEDE = GERMAN name. TRAFFIC_DIRECTIONDF = direction of traffic flow. EXTRA_ATTRIBUTEEA = extra attributes for POIs objects. GREEK_GREEK_NAMEEG = GREEK name (greek alphabet). GREEK_NAMEEL = GREEK name (latin alphabet). ENGLISH_NAMEEN = ENGLISH name. SPANISH_NAMEES = SPANISH name. ESTONIAN_NAMEET = ESTONIAN name. BASQUE_NAMEEU = BASQUE name. FINNISH_NAMEFI = FINNISH name. SOURCE_FORMATF0 = source format. FRENCH_NAMEFR = FRENCH name. FRISIAN_NAMEFY = FRISISAN name. IRISH_NAMEGA = IRISH name. GAELIC_NAMEGD = GAELIC name. GALICIAN_NAMEGL = GALICIAN name. GUARANI_NAMEGN = GUARANI name. GEORGIAN_LATIN_NAMEGT = GEORGIAN_LATIN name. GUJARATI_NAMEGU = GUJARATI name. GUJARATI_LATIN_NAMEGX = GUJARATI_LATIN name. HEADERHD = header. HEBREW_NAMEHE = HEBREW name. HINDI_NAMEHI = HINDI name. HEBREW_LATIN_NAMEHL = HEBREW name (latin). ALPHA_HOUSE_NUMBERHN = Alphanumerical house number. HINDI_LATIN_NAMEHT = HINDI name (latin). HUNGARIAN_NAMEHU = HUNGARIAN name. INTERNATIONAL_CODEIC = international code. INDONESIAN_NAMEIN = INDONESIAN name (ID reserved for LinkIDs). ICELANDIC_NAMEIS = ICELANDIC name. ITALIAN_NAMEIT = ITALIAN name. JAPAN_NAMEJA = JAPAN name. JAPAN_LATIN_NAMEJL = JAPAN name (latin). KANNADA_NAMEKA = KANNADA name (latin). KAZAKH_NAMEKK = KAZAKH name. KAZAKH_LATIN_NAMEKL = KAZAKH name (latin alphabet). KOREAN_NAMEKO = KOREAN name. KOREAN_LATIN_NAMEKT = KOREAN name (latin). KANNADA_LATIN_NAMEKX = KANNADA_LATIN name (latin). LANGUAGELA = language for objects' names. LETZEBURGESCH_NAMELB = LETZEBURGESCH name. HOUSE_NUMBER_LEFTLE = House number left. LENGTHLG = length in meters. LANDMARK_3DLM = 3D landmark texture. LANE_NUMBERLN = number of lanes. LEGAL_SPEEDLS = Legal Speed. LITHUANIAN_NAMELT = LITHUANIAN name. LATVIAN_NAMELV = LATVIAN name. MALAYALAM_NAMEMA = Malayalam name. MACEDONIAN_LATIN_NAMEMC = MACEDONIAN name (latin alphabet). MACEDONIAN_NAMEMK = MACEDONIAN name (cyrillic alphabet). MOLDAVIAN_NAMEMO = MOLDAVIAN name. METROMO = Metro (0 : not a metro station; 1 : metro station). MALAY_NAMEMS = MALAY name. MALTESE_NAMEMT = MALTESE name. NB_BORDER_JUNCTIONSNB = Number border junctions. NB_JUNCTIONSNJ = Number junctions. DUTCH_NAMENL = DUTCH name. NORWEGIAN_NAMENO = NORWEGIAN name. STREET_NAME_AND_HOUSE_NUMBERNS = Street name and house number. OFFICIAL_CODEOC = Official Code. NAMEON = Official Name. POPULATION_CATEGORYPC = Population Category. POPULATIONPO = Population. POLISH_NAMEPL = POLISH name. DATA_PROVIDERPR = data provider's name. POSTAL_CODEPS = postal code. PORTUGUESE_NAMEPT = PORTUGUESE name. HOUSE_NUMBER_RIGHTRE = House number right. RUSSIAN_LATIN_NAMERL = RUSSIAN name (latin alphabet). RHAETO_ROMANCE_NAMERM = RHAETO-ROMANCE name. ROUTE_NUMBERRN = Route number (ex. E15, A6, N7, etc.). ROMANIAN_NAMERO = ROMANIAN name. RUSSIAN_NAMERU = RUSSIAN name (cyrillic alphabet). SCALESC = coordinates' scale. SERBO_CROATIAN_NAMESH = SERBO-CROATIAN name. SIGN_INFORMATIONSI = sign information. SLOVAK_NAMESK = SLOVAK name. SLOVENIAN_NAMESL = SLOVENIAN name. SPEED_CATEGORYSP = speed category (km/h): 0=10;1=20;2=30;3=40;4=50;5=60;6=70;7=80;8=90;9=100;10=110;11=120. ALBANIAN_NAMESQ = ALBANIAN name. SERBO_CROATIAN_LATIN_NAMESR = SERBO-CROATIAN name (latin alphabet). SVS_TYPEST = SVS type. SWEDISH_NAMESV = SWEDISH name. TRUCK_ATT_TIME_DOMAIN_ATTRIBUTET0 = Truck Attribute with a Time domain Attribute. TRUCK_ATTRIBUTETA = Truck Attribute. TIME_DOMAIN_ATTRIBUTETD = Time domain Attribute. TEXTURE_COORDTE = Texture coordinates (for 3D landmarks). THAI_NAMETH = THAI name. TRAFIC_INFOTI = Traffic Info Attribute. TELEPHONETL = telephone number. TMC_LOCATIONTM = TMC location. TOLL_ROADTR = toll road. TURKISH_NAMETU = TURKISH name. THAI_LATIN_NAMETX = THAI name (latin alphabet). UKRAINIAN_NAMEUK = UKRAINIAN name (cyrillic alphabet). UKRAINIAN_LATIN_NAMEUL = UKRAINIAN name (latin alphabet). UTM_ZONEUT = UTM zone : 1 - 60, positif for north, negative for south. VIETNAMESE_NAMEVI = VIETNAMESE name. VIETNAMESE_LATIN_NAMEVL = VIETNAMESE name (latin alphabet). VALENCIAN_NAMEVL = VALENCIAN name. VT_MASKVT = vehicle type mask. ANY_LANGXX = Any language code. CHINESE_NAMEZH = Chinese name. CHINESE_LATIN_NAMEZL = Chinese name (latin alphabet). keystringBeNomad key of attribute.
numericKeyinteger (int32)Numeric key.
rawDatabooleanBeNomad raw data.
typeenumData type.
14 accepted values
NABOOLEANBYTEBYTESCHARDOUBLEFLOATINTLONGSTRINGKEYLABELMETAUINTvaluestringData value.
waypointPolylineCoordinate[]Waypoints polyline of route. This polyline is composed of the coordinates of the route with inserted waypoint matched coordinates.
eventsRoutingEvnt[]Events on road. See the
EVENToption.RoutingEvnt fields
typeenumType of event.
3 accepted values
SEGMENTEach entry values come from the road segmentation of map data. SAMPLING_TIMEEach entry values are sampled by time. SAMPLING_DISTANCEEach entry values are sampled by distance. distanceUnitstringDefines the distance unit.
timeUnitstringDefines the time unit.
markersRoutingEvntMarker[]List of markers.
RoutingEvntMarker fields
distanceinteger (int64)The travel distance from start of the route.
timeinteger (int64)The travel time from start of the route.
percentnumber (double)The percentage of distance from start of the route.
coordinateCoordinateThe coordinate of the marker.
entriesRoutingEvntEntry[]List of entries.
RoutingEvntEntry fields
typestringType of entry.
namestringName of entry.
jsonObjectanyRepresentation of object value by JSON.
Response sample#
JSON Sample:
{
"usedDestinations": [
{
"inputOrder": 0,
"used": true,
"usedOrder": 0,
"matchedCoordinateGps": {
"time": 0,
"lon": 7.410589515220335,
"lat": 43.73446
},
"confidenceValue": 0.26293365794278756,
"distanceFromRequest": 0.26293365794278756,
"polylineIndex": -1,
"duration": -1,
"length": -1
},
{
"inputOrder": 1,
"used": true,
"usedOrder": 0,
"matchedCoordinateGps": {
"time": 0,
"lon": 7.153760258732184,
"lat": 43.7218875
},
"confidenceValue": 0.2531497216525051,
"distanceFromRequest": 0.2531497216525051,
"polylineIndex": -1,
"duration": 2858,
"length": 41176
},
{
"inputOrder": 2,
"used": true,
"usedOrder": 0,
"matchedCoordinateGps": {
"time": 0,
"lon": 7.150919586466134,
"lat": 43.66243875
},
"confidenceValue": 0.2166680598512079,
"distanceFromRequest": 0.2166680598512079,
"polylineIndex": -1,
"duration": 3697,
"length": 49898
},
{
"inputOrder": 3,
"used": true,
"usedOrder": 0,
"matchedCoordinateGps": {
"time": 0,
"lon": 7.129009195030274,
"lat": 43.62986375
},
"confidenceValue": 0.18562016614150673,
"distanceFromRequest": 0.18562016614150673,
"polylineIndex": -1,
"duration": 4409,
"length": 55188
}
],
"routingRoutes": [
{
"length": 55188,
"duration": 4409,
"trafficDelay": 0,
"averageSpeed": 45.061646,
"maximumSpeed": 0.0,
"startUTurnThreshold": 3000,
"startStopInfo": {
"start": {
"lon": 7.41059,
"lat": 43.73446
},
"stop": {
"lon": 7.12901,
"lat": 43.62986
},
"distanceFirstMatched": 0.0,
"distanceLastMatched": 0.42,
"interDests": null
}
}
]
}