HERE Isoline Routing v8 response structure
The Response JSON object consists of:
- A
departureorarrivaldescribing the origin or destination details provided in the request. - An array of
isolines.
Each isoline in the isolines array has the following parameters:
- A
rangefor which the isoline was generated. - A list of
polygonelements, each of which are an array of geo-coordinates defining the boundary of the isolines. - A
connectionlist which identifies which polygons are connected and the shape of the connection. For an example of whereconnectionscan occur, see Isoline with multiple components.
The array of geo-coordinates in the polygons and the shape of the connections between the polygons are encoded using Flexible Polyline. Examples in the linked repository show how polylines can be decoded in some of the commonly used programming languages.
The decoded polyline will be a series of coordinates that you can use to render the isolines, for example using the HERE Maps API for Javascript. To learn more, see the Polyline on the map example.
Note
A different
departureTimeorarrivalTimewill have various effects ranging from different traffic impact to road closures. If you specifydepartureTimeasany, the route calculation will not take time-dependent information into account, with the exception of long-term closures. Long-term closures (that is, current closures that last for more than a day) will still be considered.departureTime=anyis often referred to as "planning mode", and can be useful when the departure or arrival time of the route are not known in advance. Note that sending the same request with the parameterdepartureTime=anyat different times may result in different responses.
Example
curl -gX GET 'https://isoline.router.hereapi.com/v8/isolines?'\
'transportMode=car&'\
'origin=52.5308,13.3847&'\
'range[type]=distance&'\
'range[values]=3000&'\
'apiKey=YOUR_API_KEY'Response:
{
"departure": {
"place": {
"type": "place",
"location": {
"lat": 52.5309797,
"lng": 13.3845615
},
"originalLocation": {
"lat": 52.5307999,
"lng": 13.3847
}
}
},
"isolines": [
{
"range": {
"type": "distance",
"value": 3000
},
"polygons": [
{
"outer": "BGmk9lkDo7tuZAqmF2KmgBsgCuV4KmgBA-qB4KmgBmgB2K8qBAmgB4KwVsgCuVAuVrgCwVA2KmgBA-qB4KmgBsgCuV4KmgB3KmgB9qB-qBrgCuVx2Gy2G3KmgB4KmgBuVuV4KmgBA-qB4KmgBuVuV4KmgBA-qB2KmgB-qB-qBuVAo2En2EsgCtVAtVvVvV1KlgBA7qB2KlgBmgB3KmgB4KwVsgCuVA61C71CAtVtVtVvVrgCtVvV1KlgBA7qB2KlgBsgCtVuVvVwVAu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