BeMapAPI
BeMap 4.1.0

REST API, Service version 1.0.0

Trace route#

Performs a road-matching of GPS coordinates and routing process for a specified type of vehicle. Road-matching consists in correcting uncertainties related to GPS measurements by repositioning a vehicle on the most accurate segment of neighboring roads. This service assumes that an input position corresponds to a chronological sequence of positions of a given vehicle driving on the road network.

Summary#

  1. Request
    1. Mandatory parameters
    2. Optional parameters
  2. Response
    1. Details of fields
    2. 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/traceroute

POST data:

javascript
{
	"destinations" : [
		{
			"coordinateSat" : {
				"lon" : 7.066,
				"lat" : 43.616,
				"heading" : 17.6,
				"speed" : 23.1,
				"time" : 1396241966000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0664,
				"lat" : 43.6162,
				"heading" : 95.0,
				"speed" : 29.3,
				"time" : 1396241972000,
				"sat" : 11
			}
		},
				{
			"coordinateSat" : {
				"lon" : 7.0786,
				"lat" : 43.6153,
				"heading" : 119.0,
				"speed" : 61.9,
				"time" : 1396242062000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0805,
				"lat" : 43.6147,
				"heading" : 200.9,
				"speed" : 50.6,
				"time" : 1396242077000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0785,
				"lat" : 43.6117,
				"heading" : 115.8,
				"speed" : 38.1,
				"time" : 1396242104000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0787,
				"lat" : 43.6118,
				"heading" : 15.6,
				"speed" : 26.0,
				"time" : 1396242107000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0793,
				"lat" : 43.6128,
				"heading" : 76.0,
				"speed" : 26.6,
				"time" : 1396242128000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0814,
				"lat" : 43.6116,
				"heading" : 269.9,
				"speed" : 5.6,
				"time" : 1396242172000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0811,
				"lat" : 43.6117,
				"heading" : 338.7,
				"speed" : 7.5,
				"time" : 1396242182000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0812,
				"lat" : 43.6119,
				"heading" : 47.3,
				"speed" : 14.9,
				"time" : 1396241966000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0815,
				"lat" : 43.6119,
				"heading" : 127.1,
				"speed" : 8.5,
				"time" : 1396242198000,
				"sat" : 11
			}
		},
		{
			"coordinateSat" : {
				"lon" : 7.0816,
				"lat" : 43.6118,
				"heading" : 0.0,
				"speed" : 0.0,
				"time" : 1396242288000,
				"sat" : 11
			}
		}
	],
	"routingVehicleProfile" : {
		"transportMode" : "CAR",
		"routingVehicleFeature" : {
			"height" : 380,
			"width" : 40,
			"length" : 1875,
			"weight" : 35,
			"axleWeight" : 10
		}
	},
	"options": ["ROUTESHEET","POLYLINE","POLYLINE_INDEX"]
}

All coordinates are defined by longitude and latitude, see the coordinate system glossary for more details.

Parameters#

  • destinationsTraceRouteDest[]required

    Defines an array of GPS coordinates and other parameters.

    TraceRouteDest fields
    • coordinateSatCoordinateSat

      GPS coordinates.

      CoordinateSat fields
      • lonnumber (double)required

        Longitude in degrees decimal (WGS84).

        Also accepted as longitude.

      • latnumber (double)required

        Latitude 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.

    • keptByMinimalWpboolean

      This parameter keptByMinimalWp (previously mandatory) will be used by the traceroute API. When the value is set to true and the option NO_MINIMAL_WAYPOINTS is not defined, the coordinate will be kept in the waypoints array of the response.

      Also accepted as mandatory.

    • customDataCustomDt[]

      Custom data is a list that can be used to set some custom information about the coordinate in input and returned in response.

      CustomDt fields
      • keystring
      • valuestring
  • routingVehicleProfileRoutingVehicleProfrequired

    A routing vehicle profile defines physical, legal, toll and energetic characteristics.

    RoutingVehicleProf fields
    • transportModeenum

      Defines the transportation mode: Car, pedestrian, truck, etc. Default value is CAR, except for Traceroute service for which default value is EMERGENCY. 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 TRUCK instead.
      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.

      • typeenum

        Defines 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.
    • routingVehicleFeatureRoutingVehicleFtr

      Defines 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.

      • hazardousMaterialsenum

        Hazardous 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.

      • tollTransportCategoryenum

        Defines the toll vehicle category. Affects toll calculation. UNDEFINED by 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).
      • caravanenum

        Defines if the vehicle has a caravan. Affects toll calculation. UNDEFINED by default.

        3 accepted values
        UNDEFINEDUndefined.
        YESYes.
        NONo.
      • hybridenum

        Defines if vehicle has a hybrid engine. Affects toll calculation. UNDEFINED by default.

        3 accepted values
        UNDEFINEDUndefined.
        YESYes.
        NONo.
      • disEquippedenum

        Defines if vehicle is equipped for disabled people. Affects toll calculation. UNDEFINED by default.

        3 accepted values
        UNDEFINEDUndefined.
        YESYes.
        NONo.
      • pollMinenum

        Defines if vehicle has minimal pollution. Affects toll calculation. UNDEFINED by default.

        3 accepted values
        UNDEFINEDUndefined.
        YESYes.
        NONo.
      • hovenum

        Defines if vehicle is a High Occupancy Vehicle (USA only). See Wikipedia: High-occupancy vehicle lane. Affects toll calculation. UNDEFINED by default.

        3 accepted values
        UNDEFINEDUndefined.
        YESYes.
        NONo.
      • cialenum

        Defines if vehicle is a commercial vehicle. Affects toll calculation. UNDEFINED by 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 height to define total height : vehicle + trailer). Affects toll calculation.

      • trailHeightinteger (int32)

        Defines trailer's height in centimeters (optional, use field height to define total height : vehicle + trailer). Affects toll calculation.

      • vehWeightinteger (int32)

        Defines vehicle's weight in tens of tons (optional, use field weight to define total weight : vehicle + trailer). Affects toll calculation.

      • emissionClassenum

        Defines 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.
      • adrTunnelCategoryenum

        ADR 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.
      • onlyPhysicalboolean

        Defines 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. false by default. Affects route calculation.

    • routingEnergyVehicleFeatureRoutingEnergyVehicleFtr

      Energy 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).

      • regenerativeBrakingboolean

        Defines if the vehicle supports regenerative braking (default = true).

    • routingEnergyVehicleConnectorTypeIdsinteger (int32)[]deprecated

      Connector (plug) type of electrical vehicle, used for energy consumption estimation. Deprecated Use the API Charging Station.

    • routingEnergyVehicleRangesinteger (int64)[]deprecated

      Energy vehicle range. Define the pre-calculated electric vehicle autonomy in meters.

    • chargingStationProviderNamestringdeprecated

      Name 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)required

        Specifies 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. 1 by default.

      • levelinteger (int32)required

        Road element's level (0: all 4 levels, 1: main level, 2: secondary level, 3: third level, 4: fourth level).

      • roadTypeenum

        Define the road type.

        7 accepted values
        ALLAll road network.
        DEFAULTDefault.
        FERRYFerry line.
        MOTORWAYMotorway.
        PEDESTRIANPedestrian.
        ROUNDABOUNTRoundabout.
        SLIPROADSlip road.
      • pondTypeenum

        Define 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)required

        New coefficient factor for cross-penalties (Default = 1).

      • ptypeenum

        Enumeration 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).
      • typeenum

        Defines 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).
  • geoserverstring

    Geoserver name.

  • swidxinteger (int32)deprecated

    Switch index.

  • optionsenum[]

    Options of trace route service.

    48 accepted values
    USED_DESTINATIONS_OFFDisables used destinations list in the response.
    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 EVENT and EVT_POLYINE options.
    DETAILED_POLYLINEReturns the polyline (geometry) of itinerary with more information for each sub-segments. Deprecated, use events system (like EVENT, EVT_POLYLINE) instead.
    POLYLINE_INDEXEnables the index calculation of used destination on the polyline. Deprecated, use events system (like EVENT, EVT_POLYLINE) instead.
    OPENLRAttempt to return the geometry of route as an encoded OpenLR base64 string. Some routes cannot be encoded in OpenLR (like U-turns).
    SEGMENTIDSReturns the list of segments id of itinerary.
    ROAD_SEGMENTSReturns the list of road segments of itinerary. See in response the field roadSegments.
    JUNCTION_NODESReturns the junction nodes of 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.
    NO_MINIMAL_WAYPOINTSSub option of WAYPOINTS option. Disables the minimal waypoints algorithm. By default the waypoint list contains only the waypoints necessary to reproduce the route. With this option all waypoints are returned (faster computation).
    OFFROADSSub option of WAYPOINTS option. Returns the off-road polylines in the waypoints array of the response. See the field waypoints.offRoad in response.
    OFFROADS_RAWDATASub option of OFFROADS option. Returns the native value of map attributes of the Off-road section.
    WAYPOINTS_POLYLINEReturns the polyline of the route including the waypoints coordinate.
    ENERGY_CONSUMPTIONReturns the energy consumption estimation (energyConsumption field). This option requires the Energy vehicle feature, see field routingVehicleProfile and sub field routingEnergyVehicleFeature.
    TOLL_COSTEnables the toll cost calculation. This option requires the Vehicle Profile, see field routingVehicleProfile and sub field routingVehicleFeature. 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 routingVehicleProfile and sub field routingVehicleFeature. Contact the support for the required map data. Deprecated replaced by EVT_TAX_COST option.
    ECO_TAXEnables the eco-tax calculation. This option requires the Vehicle Profile, see field routingVehicleProfile and sub field routingVehicleFeature. Contact the support for the required map data. Deprecated replaced by EVT_TAX_COST option.
    REVGEO_POSTAL_ADDRESSReturns the postal addresses of matched input coordinates.
    EVENTEnables structure of events on road. See sub options EVT_xxxxx other 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 EVENT option. Enables filter on repeated values. Avoids repeating events on every road segments when there are no changes.
    EVT_ENTRY_VALUE_AS_OBJECTSub option of EVENT option. Enables generation of entrie's values as a JSON object instead of encapsulating in a string format.
    EVT_ROAD_FEATURESub option of EVENT option. Enables the road features such as: maximum speed, bridge, tunnel, number of lanes in each direction, etc.
    EVT_PROHIBITED_DRIVINGSub option of EVENT option. Enables the prohibited driving information like against traffic direction (againstTrafficDir), prohibited turn (prohibitedTurn) and prohibited blocked passage (prohibitedBlockedPassage).
    EVT_ELEVATIONSub option of EVENT option. Enables the elevation of road segments. Returns the altitude of first point and last point in two entries. Deprecated, use EVT_ELEVATION2 instead.
    EVT_ELEVATION2Sub option of EVENT option. Enables the elevation of road segments. Returns the altitude of first point and last point in one entry.
    EVT_SEGMENT_INFOSub option of EVENT option. 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 EVENT option. Enables the road segment type: The administrative levels (roadAdminLevel parameter): FOURTH_ROAD, TERTIARY_ROAD, SECONDARY_ROAD, MAIN_ROAD. And the geoElementType parameter: PEDESTRIAN, ROUNDABOUT, SLIP_ROAD, ROAD, MOTORWAY, FERRY
    EVT_POLYLINESub option of EVENT option. Enables the polyline geometry.
    EVT_ENCODED_POLYLINESub option of EVENT option. Enables the encoded polyline geometry.
    EVT_LENGTHSub option of EVENT option. Enables length in meters of road segment.
    EVT_DURATIONSub option of EVENT option. Enables estimated travel duration in seconds of road segment.
    EVT_ENERGY_CONSUMPTIONSub option of EVENT option. Enables the autonomy limit event estimation. Additionally this option requires the Energy vehicle feature (routingEnergyVehicleFeature) parameter. The returned energyEndOfAutonomyAt field indicates the distance in meters from start. The returned energyEndOfAutonomyCoord field indicates the location of the autonomy limit.
    EVT_ENERGY_CONSUMPTION_SAMPLESub option of EVENT option. 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: distFromStart in meters, speed in m/s, acceleration in m/s², angle in degrees, slope (coefficient), cumulativeConsumption in Wh, pos coordinate (WGS84) and altitude in meters of event.
    EVT_CHARGING_STATIONSub option of EVENT option. Add electrical charging station information (static data). Deprecated Use the API Charging Station.
    EVT_CHARGING_STATION_DYNAMICSub option of EVENT option. Add electrical charging station information (dynamic data). Deprecated Use the API Charging Station.
    EVT_TOLL_COSTSub option of EVENT option. Enables the toll cost calculation. This option requires the Vehicle Profile, see field routingVehicleProfile and sub field routingVehicleFeature. Contact the support for the required map data. See the response structure RoutingTollCst and Tol of entry type TollCost. Contact the support for the required map data.
    EVT_TAX_COSTSub option of EVENT option. Enables the tax cost calculation. This option requires the Vehicle Profile, see field routingVehicleProfile and sub field routingVehicleFeature. Contact the support for the required map data. See the response structure RoutingTaxCst and RoutingTaxSect of entry type TaxCost. Contact the support for the required map data.
    EVT_TRAFFICSub option of EVENT option. Returns the real time traffic info in event structure of type TrafficElement. The information contains the jamFactor in percentage, reason (text), currentAvrSpeed in km/h, freeFlowAvrSpeed in km/h, etc. NOTE: This option does not affect the route calculation, use the option TRAFFIC for that.
    EVT_TRAFFIC_PREDICTIVESub option of EVENT option. Returns the real time predictive traffic info in event structure of type TrafficElement. The information contains the jamFactor in percentage, reason (text), currentAvrSpeed in km/h, freeFlowAvrSpeed in 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 EVENT option. Returns the historical traffic info (i.e. the real time in the past) in event structure of type TrafficElement. Requires a departureTime in the past. The information contains the jamFactor in percentage, reason (text), currentAvrSpeed in km/h, freeFlowAvrSpeed in 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 EVENT option. Enables the route-sheet turn-by-turn instructions in event structure with type Routesheet. See the class RoutingInstruc.
    EVT_TRAFFIC_SIGNSSub option of EVENT option. Enables the traffic sign information in event structure with type TrafficSign. text (optional) text displayed below traffic sign, matchedCoordinate location 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 EVENT option. 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.
  • departureTimestring

    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 departure.

  • adjustEtaboolean

    Defines if the calculated route's ETA should match with field time of input destinations (GPS time in milliseconds (EPOCH)). The field time of input destinations must be filled.

  • allowOffRoadboolean

    Defines if the returned route are computed with off-roads. Otherwise, no off-road are created. True by default.

  • 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
    • centerCoordinaterequired

      Center of circle fence.

      Coordinate fields
      • lonnumber (double)required

        Longitude in degrees decimal (WGS84).

        Also accepted as longitude.

      • latnumber (double)required

        Latitude in degrees decimal (WGS84).

        Also accepted as latitude.

    • radiusinteger (int64)required

      Radius of circle fence.

    • verticesCoordinate[]required

      Vertices of polygon fence.

      Coordinate fields
      • lonnumber (double)required

        Longitude in degrees decimal (WGS84).

        Also accepted as longitude.

      • latnumber (double)required

        Latitude in degrees decimal (WGS84).

        Also accepted as latitude.

    • idinteger (int64)

      The fence id. If value is negative the server will set it with an auto-incrementing number.

    • typeenum

      Define the type of geometric shape of fence, like CIRCLE or POLYGON.

      2 accepted values
      CIRCLECircle.
      POLYGONPolygon.
  • languagestring

    Defines 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.

  • customDataCustomDt[]

    Custom data. The parameter customData can be repeated and contains a key and value.

    CustomDt fields
    • keystring
    • valuestring

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.

    • usedboolean

      Indicates 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.

    • matchedCoordinateGpsCoordinateSat

      Map matched coordinate (i.e. snapped on a map road element).

      CoordinateSat fields
      • lonnumber (double)required

        Longitude in degrees decimal (WGS84).

        Also accepted as longitude.

      • latnumber (double)required

        Latitude 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.

    • matchedPostalAddressAddress

      Postal address of map matched coordinate.

      Address fields
      • countryCodestring

        ISO code of country.

      • countrystring

        Country name.

      • statestring

        State name.

      • countystring

        County name.

      • citystring

        City name.

      • districtstring

        District name of city.

      • postalCodestring

        Postal code.

      • roadNumberstring

        Road number.

      • streetstring

        Street name.

      • streetNumberstring

        House number.

      • oppositeStreetNumberstringdeprecated

        Opposite 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.

    • exceptionMessagestring

      The exception message of the destination. Returned only when the option REVGEO_STRICT_DISABLE is defined in request.

    • polylineIndexinteger (int64)deprecated

      The index of corresponding coordinate in route's polyline. Only when the option POLYLINE_INDEX is defined in request, otherwise the value is set to -1.

    • waypointPolylineIndexinteger (int32)deprecated
    • durationinteger (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
      • keystring
      • valuestring
  • routingRoutesRoutingRt[]

    Defines a list of computed routes.

    RoutingRt fields
    • exceptionMessagestring

      Error 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 startUTurnThreshold meters 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.

    • routingTollCostRoutingTollCst

      Total toll cost range along the route. See option EVT_TOLL_COST.

      RoutingTollCst fields
      • tollsTol[]

        List of tolls.

        Tol fields
        • tollTypeenum

          Type 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
          • currencystring

            Currency unit in norm ISO 4217, more details on Wikipedia ISO 4217.

          • categorystring

            A textual definition of vehicle category.

          • pricenumber (double)

            Price.

        • coordinateCoordinate

          Coordinate of toll.

          Coordinate fields
          • lonnumber (double)required

            Longitude in degrees decimal (WGS84).

            Also accepted as longitude.

          • latnumber (double)required

            Latitude in degrees decimal (WGS84).

            Also accepted as latitude.

      • 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
        • currencystring

          Currency 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.

    • routingTaxCostRoutingTaxCst

      Total tax cost range along the route. See option EVT_TAX_COST.

      RoutingTaxCst fields
      • taxSectionsRoutingTaxSect[]

        List of tax sections.

        RoutingTaxSect fields
        • taxCategoryenum

          Tax 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.
        • countryCodestring

          The 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
          • currencystring

            Currency in norm ISO 4217, more details on Wikipedia ISO 4217 https://en.wikipedia.org/wiki/ISO_4217.

          • categorystring

            A 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
        • currencystring

          Currency 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 ROUTESHEET option in request.

      RoutingInstruc fields
      • typeenum

        Instruction 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.
      • geoElementTypeenum

        Geo element type following instruction.

        61 accepted values
        ALL_ROADRoad types.
        PEDESTRIAN
        ROUNDABOUT
        SLIP_ROAD
        ROAD
        MOTORWAY
        FERRY
        MAIN_ROADRoad levels.
        SECONDARY_ROAD
        TERTIARY_ROAD
        FOURTH_ROAD
        COUNTRYAdministrative.
        STATE
        COUNTY
        CITY
        DISTRICT
        POSTAL_CODE
        BUILT_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_STATION
        RENT_A_CAR
        PARKING_GARAGE
        HOTEL_MOTEL
        RESTAURANT
        TOURIST_OFFICE
        MUSEUM
        THEATRE
        CULTURAL_CENTRE
        SPORTS_ACTIVITY
        HOSPITAL
        POLICE_STATION
        CITY_HALL
        POST_OFFICE
        PHARMACY
        BANK
        CAMPING
        SHOPPING_CENTRE
        STADIUM
        TOURIST_ATTRACTION
        BUS_STATION
        EXHIBITION_CENTER
        GOLF_COURSE
        GROCERY_STORE
        LIBRARY
        MARINA
        HISTORICAL_MONUMENT
        BOWLING
        CASINO
        CINEMA
        SPORTS_CENTRE
        BEACH
        SHOP
        OPERA
        TENNIS_COURT
        MUSIC_CENTER
        AMUSEMENT_PARK
        ZOO
      • lengthinteger (int32)

        Distance in meters of current instruction.

      • durationinteger (int32)

        Duration in seconds of current instruction.

      • fromNamestring

        Name of last road segment before the maneuver. In specified language define in request, if available in map data

      • fromPhonemestring

        Phonetic transcription of the name of last road segment before the maneuver. In specified language define in request, if available in map data

      • manoeuvreenum

        The 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.
      • coordinateCoordinate

        Position of the maneuver.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

      • roundAboutExitNumberinteger (int32)

        The exit number of a roundabout.

      • toNamestring

        Name (or sign post) of first road segment after the maneuver. In specified language define in request, if available in map data

      • toOnstring

        Returns the Official Name of next route section (in specified language code if available).

      • toOnPhonemestring

        Returns phonetic transcription of the official name of next route section.

      • toPhonemestring

        Phonetic 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

      • toRnstring

        Route number of first road segment after the maneuver.

      • toRnPhonemestring

        Phonetic transcription of the route number of first road segment after the maneuver.

      • toSistring

        Sign post to follow after the maneuver. In specified language define in request, if available in map data.

      • toSiPhonemestring

        Phonetic transcription of the sign post to follow after the maneuver. In specified language define in request, if available in map data.

      • textDiststring

        Distance instruction in human readable format can be used with text-to-speech.

      • textstring

        Instruction in human readable format can be used with text-to-speech.

      • polylineIndexinteger (int32)deprecated

        Index in route polyline's points array of first form of this instruction. Deprecated use instead EVENT, EVT_ROUTESHEET with EVT_POLYLINE or EVT_ENCODED_POLYLINE.

    • boundingBoxBoundingBox

      Bounding box of the route.

      BoundingBox fields
      • minLonnumber (double)

        Minimum longitude, in degrees decimal (WGS84).

      • minLatnumber (double)

        Minimum latitude, in degrees decimal (WGS84).

      • maxLonnumber (double)

        Maximum longitude, in degrees decimal (WGS84).

      • maxLatnumber (double)

        Maximum latitude, in degrees decimal (WGS84).

    • corridorGeometricPoly[]

      Corridor around the route. Use the parameter corridorRadius in request.

      GeometricPoly fields
      • coordinatesCoordinate[]

        Coordinates of the polygon.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

    • fenceResultsGeoFenceRes[]

      List of tested fences.

      GeoFenceRes fields
      • idinteger (int64)

        Unique ID of fence.

      • typeenum

        Type of geometry.

        2 accepted values
        CIRCLECircle.
        POLYGONPolygon.
      • fenceShapeGeoFenceShp

        Shape of fence used to perform the test.

        GeoFenceShp fields
        • centerCoordinaterequired

          Center of circle fence.

          Coordinate fields
          • lonnumber (double)required

            Longitude in degrees decimal (WGS84).

            Also accepted as longitude.

          • latnumber (double)required

            Latitude in degrees decimal (WGS84).

            Also accepted as latitude.

        • radiusinteger (int64)required

          Radius of circle fence.

        • verticesCoordinate[]required

          Vertices of polygon fence.

          Coordinate fields
          • lonnumber (double)required

            Longitude in degrees decimal (WGS84).

            Also accepted as longitude.

          • latnumber (double)required

            Latitude in degrees decimal (WGS84).

            Also accepted as latitude.

        • idinteger (int64)

          The fence id. If value is negative the server will set it with an auto-incrementing number.

        • typeenum

          Define the type of geometric shape of fence, like CIRCLE or POLYGON.

          2 accepted values
          CIRCLECircle.
          POLYGONPolygon.
      • positionStateenum

        Defines 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.
      • positionCoordinate

        The coordinates of the intersection in WGS84.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

      • timestampinteger (int64)

        The estimated time stamp of this intersection in milliseconds.

    • startStopInfoRoutingRouteStartStopInf

      Information about the start and stop coordinates of a route found by the routing calculation.

      RoutingRouteStartStopInf fields
      • startCoordinate

        Start (first) coordinate of the computed route.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

      • stopCoordinate

        Stop (last) coordinate of the computed route.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

      • 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.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

    • polylineCoordinate[]

      Route polyline geometry. See the option POLYLINE.

      Coordinate fields
      • lonnumber (double)required

        Longitude in degrees decimal (WGS84).

        Also accepted as longitude.

      • latnumber (double)required

        Latitude in degrees decimal (WGS84).

        Also accepted as latitude.

    • detailedPolylinesGeometricDetPolyline[]deprecated

      Polyline geometry of itinerary with more information for each sub-segments. See the option DETAILED_POLYLINE. Deprecated Use events system (like EVENT, EVT_POLYLINE) instead.

      GeometricDetPolyline fields
      • coordinatesCoordinate[]

        Matched coordinate on a road.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

      • lengthinteger (int64)

        Length of route segment in meters.

    • openLrBase64string

      Route geometry encoded as OpenLR (in base64 encoding).

    • segmentIdsinteger (int64)[]deprecated

      List of segment ID of computed route.

    • roadSegmentsRoadSeg[]deprecated

      Route segments. Deprecated use events system (like EVENT, EVT_SEGMENT_INFO, EVT_POLYLINE) instead.

      RoadSeg fields
      • countryCodestring

        Country code (ISO).

      • idinteger (int64)

        ID of segment. -1 if information is not available.

      • reverseDirectionboolean

        True 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.

      • fromCoordinate

        Coordinate of first point.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

      • toCoordinate

        Coordinate of last point.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

    • junctionNodesCoordinate[]deprecated

      Junction nodes of route.

      Coordinate fields
      • lonnumber (double)required

        Longitude in degrees decimal (WGS84).

        Also accepted as longitude.

      • latnumber (double)required

        Latitude in degrees decimal (WGS84).

        Also accepted as latitude.

    • waypointsRoutingWaypnt[]

      Waypoints of route.

      RoutingWaypnt fields
      • usedDestinationIndexinteger (int32)

        The index of the used destinations (destinations). -1 if not available.

      • polylineIndexinteger (int32)deprecated

        The index of the waypoint polyline. -1 if not available.

      • waypointPolylineIndexinteger (int32)

        The coordinate index of the waypoint polyline.

      • coordinateCoordinate

        Coordinate of waypoint.

        Coordinate fields
        • lonnumber (double)required

          Longitude in degrees decimal (WGS84).

          Also accepted as longitude.

        • latnumber (double)required

          Latitude in degrees decimal (WGS84).

          Also accepted as latitude.

      • anglenumber (double)

        Angle in degrees of the road segment (clock-wise).

      • radiusinteger (int64)

        Radius (in meters) of the waypoint.

      • uturnboolean

        Defines if a UTurn is done on this via point.

      • ignorePointboolean

        Defines if this waypoint is ignored by the planner for its route calculation.

      • ignoreTrafficDirectionsboolean

        Defines if traffic directions should be ignored by route planner between this waypoint and next one.

      • ignoreRoadBlocksboolean

        Defines if road blocks should be ignored by route planner between this waypoint and next one.

      • ignoreRestrictionsboolean

        Defines if forbidden manoeuvres and blocked passages should be ignored by route planner between this waypoint and next one.

      • avoidUTurnenum

        Defines if a UTurn should be avoided (if possible) by route planner at this location.

        3 accepted values
        UNDEFStatus undefined.
        YESStatus yes.
        NOStatus no.
      • useStartAngleenum

        If set to YES and 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.
      • useStopRoadSideenum

        Defines 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.
      • offRoadRoutingOffRd

        Polyline representing the offroad section following this waypoint.

        RoutingOffRd fields
        • geometryCoordinate[]

          Geometry representing the offroad section.

          Coordinate fields
          • lonnumber (double)required

            Longitude in degrees decimal (WGS84).

            Also accepted as longitude.

          • latnumber (double)required

            Latitude in degrees decimal (WGS84).

            Also accepted as latitude.

        • attributesAttributeItem[]

          Attributes.

          AttributeItem fields
          • attributeCodeenum

            BeNomad 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).
          • keystring

            BeNomad key of attribute.

          • numericKeyinteger (int32)

            Numeric key.

          • rawDataboolean

            BeNomad raw data.

          • typeenum

            Data type.

            14 accepted values
            NA
            BOOLEAN
            BYTE
            BYTES
            CHAR
            DOUBLE
            FLOAT
            INT
            LONG
            STRING
            KEY
            LABEL
            META
            UINT
          • valuestring

            Data value.

    • waypointPolylineCoordinate[]

      Waypoints polyline of route. This polyline is composed of the coordinates of the route with inserted waypoint matched coordinates.

      Coordinate fields
      • lonnumber (double)required

        Longitude in degrees decimal (WGS84).

        Also accepted as longitude.

      • latnumber (double)required

        Latitude in degrees decimal (WGS84).

        Also accepted as latitude.

    • eventsRoutingEvnt[]

      Events on road. See the EVENT option.

      RoutingEvnt fields
      • typeenum

        Type 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.
      • distanceUnitstring

        Defines the distance unit.

      • timeUnitstring

        Defines 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.

        • coordinateCoordinate

          The coordinate of the marker.

          Coordinate fields
          • lonnumber (double)required

            Longitude in degrees decimal (WGS84).

            Also accepted as longitude.

          • latnumber (double)required

            Latitude in degrees decimal (WGS84).

            Also accepted as latitude.

        • entriesRoutingEvntEntry[]

          List of entries.

          RoutingEvntEntry fields
          • typestring

            Type of entry.

          • namestring

            Name of entry.

          • jsonObjectany

            Representation of object value by JSON.

Response samples#

JSON Sample:

javascript
{
    "usedDestinations": [
        {
            "inputOrder": 0,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.065868896076492,
                "lat": 43.616005
            },
            "confidenceValue": 0.2072894015379406,
            "distanceFromRequest": 0.2072894015379406,
            "polylineIndex": -1,
            "duration": -1,
            "length": -1
        },
        {
            "inputOrder": 1,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.066398283397998,
                "lat": 43.616205
            },
            "confidenceValue": 0.3909592926804005,
            "distanceFromRequest": 0.3909592926804005,
            "polylineIndex": -1,
            "duration": 17,
            "length": 56
        },
        {
            "inputOrder": 2,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.078628713869563,
                "lat": 43.61534125
            },
            "confidenceValue": 0.9983651054630179,
            "distanceFromRequest": 0.9983651054630179,
            "polylineIndex": -1,
            "duration": 120,
            "length": 1154
        },
        {
            "inputOrder": 3,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.080403748959592,
                "lat": 43.6147275
            },
            "confidenceValue": 0.5836206092537323,
            "distanceFromRequest": 0.5836206092537323,
            "polylineIndex": -1,
            "duration": 138,
            "length": 1350
        },
        {
            "inputOrder": 4,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.07845,
                "lat": 43.61179
            },
            "confidenceValue": 0.23959387567291845,
            "distanceFromRequest": 0.23959387567291845,
            "polylineIndex": -1,
            "duration": 176,
            "length": 1746
        },
        {
            "inputOrder": 5,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.07866,
                "lat": 43.61185
            },
            "confidenceValue": 0.28812487861800623,
            "distanceFromRequest": 0.28812487861800623,
            "polylineIndex": -1,
            "duration": 178,
            "length": 1764
        },
        {
            "inputOrder": 6,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.079119995852384,
                "lat": 43.6128825
            },
            "confidenceValue": 0.41855910191836315,
            "distanceFromRequest": 0.41855910191836315,
            "polylineIndex": -1,
            "duration": 192,
            "length": 1892
        },
        {
            "inputOrder": 7,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.08141,
                "lat": 43.61161
            },
            "confidenceValue": 1.0,
            "distanceFromRequest": 1.0,
            "polylineIndex": -1,
            "duration": 223,
            "length": 2148
        },
        {
            "inputOrder": 8,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.0811,
                "lat": 43.6117
            },
            "confidenceValue": 1.0,
            "distanceFromRequest": 1.0,
            "polylineIndex": -1,
            "duration": 227,
            "length": 2175
        },
        {
            "inputOrder": 9,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.0812,
                "lat": 43.6119
            },
            "confidenceValue": 1.0,
            "distanceFromRequest": 1.0,
            "polylineIndex": -1,
            "duration": 230,
            "length": 2199
        },
        {
            "inputOrder": 10,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.081468042538314,
                "lat": 43.61183298936542
            },
            "confidenceValue": 1.0,
            "distanceFromRequest": 1.0,
            "polylineIndex": -1,
            "duration": 233,
            "length": 2221
        },
        {
            "inputOrder": 11,
            "used": true,
            "usedOrder": 0,
            "matchedCoordinateGps": {
                "time": 0,
                "lon": 7.0814,
                "lat": 43.61162
            },
            "confidenceValue": 1.0,
            "distanceFromRequest": 1.0,
            "polylineIndex": -1,
            "duration": 238,
            "length": 2258
        }
    ],
    "routingRoutes": [
        {
            "length": 2258,
            "duration": 238,
            "trafficDelay": 0,
            "averageSpeed": 34.15462,
            "maximumSpeed": 0.0,
            "startUTurnThreshold": 3000,
            "startStopInfo": {
                "start": {
                    "lon": 7.06587,
                    "lat": 43.61601
                },
                "stop": {
                    "lon": 7.0814,
                    "lat": 43.61162
                },
                "distanceFirstMatched": 0.56,
                "distanceLastMatched": 0.0,
                "interDests": null
            }
        }
    ]
}