Skip to main content

Map Broker Services

Routing

Calculate a route between an origin and a destination for a generic vehicle or a pedestrian, based on the HERE Routing API v8.

To see the full list of parameters or their details, visit the HERE Routing API documentation.

Endpoint​

POSThttps://{host}:{port}/EgonMbk/api/routes

Headers & authentication​

Required request headers and their expected values.

FieldTypeDescription
tokenreq
String

Authentication token sent in the token request header.

Request​

FieldTypeDescription
transportModereq
String

Mode of transport: car, truck, pedestrian, bicycle, scooter, taxi, bus, privateBus, or networkRestrictedTruck.

Default value: car

originreq
String

Origin waypoint (WGS84). Format: {lat},{lng}.

destinationreq
String

Destination waypoint (WGS84). Format: {lat},{lng}.

via
String

Via waypoint(s). Multiple values are allowed and are traversed sequentially in the specified order.

routingMode
String

Route optimization: fast (default) or short.

Default value: fast

return
String

Attributes to include in the response, including polyline, actions, instructions, summary, travelSummary, turnByTurnActions, elevation, routeHandle, incidents, and tolls.

spans
String

Map content attributes to include per span. Requires return=polyline.

units
String

Units of measurement: metric (default) or imperial.

Default value: metric

lang
String

Preferred response language in BCP 47 format, for example it,en-US.

Response​

Calculated routes and system status.

FieldTypeDescription
data
Object

Calculated route data.

routes
Array

Route(s) calculated.

id
String

Unique route id.

sections
Array

Sections composing the route.

routeLabels
Array of String

Most important names and route numbers.

routeHandle
String

Encoded route handle for later route decoding.

notices
Array

Issues related to the route calculation.

system
Object

System error status.

ret_code
Number

Code: 0 means no blocking error; a value different from 0 is a blocking error code.

des_ret_code
String

Description of the return status.

Request Example
curl -X POST "https://{host}:{port}/EgonMbk/api/routes?transportMode=car&origin=44.9741733,7.7232365&destination=43.87644,11.11885&routingMode=fast&units=metric" \
-H "token: YOUR_API_KEY"