Get route to a street side without a divider

This request specifies sideOfStreetHint as well as matchSideOfStreet=onlyIfDivided. Since the destination street has no physical divider, the returned route is the shorter one. In other words, the calculation ignores sideOfStreetHint.

curl -X GET \
  'https://router.hereapi.com/v8/routes?transportMode=car&origin=52.5411320,13.4108499&destination=52.5391210,13.4081705;sideOfStreetHint=52.5389135,13.4079459;matchSideOfStreet=onlyIfDivided&return=polyline,summary'
{
  "routes": [
    {
      "id": "56cd515c-2c31-4f8a-b9b9-33ef07136721",
      "sections": [
        {
          "id": "50eecb39-b0dd-40d0-8a05-4d6045f5bce3",
          "type": "vehicle",
          "departure": {
            "place": {
              "type": "place",
              "location": {
                "lat": 52.5411302,
                "lng": 13.4108494,
                "elv": 0.0
              },
              "originalLocation": {
                "lat": 52.541132,
                "lng": 13.4108499
              }
            }
          },
          "arrival": {
            "place": {
              "type": "place",
              "location": {
                "lat": 52.5391076,
                "lng": 13.4081575,
                "elv": 0.0
              },
              "originalLocation": {
                "lat": 52.539121,
                "lng": 13.4081704
              }
            }
          },
          "summary": {
            "duration": 80,
            "length": 513,
            "baseDuration": 80
          },
          "polyline": "BG0s7mkDiixyZb8I_B8a_B6gBtRThMtJhM1KhMtLhI1IrJtLlzC53C6O9sB4O9qBmD3I",
          "transport": {
            "mode": "car"
          }
        }
      ]
    }
  ]
}

Screenshot

Route with sideOfStreetHint for destination on undivided road
Figure 1. Route with sideOfStreetHint for destination on undivided road

results matching ""

    No results matching ""