ストップオーバーを追加します

ルートに経由地を挿入するに via は、リクエストのパラメータを使用して、それぞれの座標を指定します。

curl -X GET \
  'https://router.hereapi.com/v8/routes?transportMode=car&return=polyline,summary&origin=52.51375,13.42462&destination=52.52332,13.42800&via=52.52426,13.43000&apiKey={YOUR_API_KEY}'
{
  "routes": [
    {
      "id": "3e63833f-bee5-406b-9636-8fd131f2eb26",
      "sections": [
        {
          "id": "27bf6c8c-fc16-49f4-822f-c2a2f07d3437",
          "type": "vehicle",
          "departure": {
            "time": "2020-06-29T17:04:53+02:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 52.513748,
                "lng": 13.424624
              },
              "originalLocation": {
                "lat": 52.51375,
                "lng": 13.42462
              }
            }
          },
          "arrival": {
            "time": "2020-06-29T17:07:22+02:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 52.5242323,
                "lng": 13.4301462
              },
              "originalLocation": {
                "lat": 52.52426,
                "lng": 13.43
              },
              "waypoint": 0
            }
          },
          "summary": {
            "duration": 149,
            "length": 1281,
            "baseDuration": 149
          },
          "polyline": "BGo9llkDg_rzZkF0G8LoQ4NoQgP8QoLgKgyB0tB4XoVoLsJ0K4IwWoQsOsJ8LwHoLoGkS0KkN8GsJ0F8GgF4D4DsE0FwHoLUgK8BkIkDkIgFwHgFwCgFUgF7B4DjDsErEsE_EkD7GoLUgFoB0F8B8Q0FsE8BkmBkSgtBwWkS8GwH8B8GoBosCgKkhBsE0FU0FUgZjD8VgKoGkD4F8C",
          "transport": {
            "mode": "car"
          }
        },
        {
          "id": "1c009836-6836-4285-bc9d-e9efc5fefb37",
          "type": "vehicle",
          "departure": {
            "time": "2020-06-29T17:07:22+02:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 52.5242323,
                "lng": 13.4301462
              },
              "originalLocation": {
                "lat": 52.52426,
                "lng": 13.43
              },
              "waypoint": 0
            }
          },
          "arrival": {
            "time": "2020-06-29T17:07:55+02:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 52.5232227,
                "lng": 13.4280044
              },
              "originalLocation": {
                "lat": 52.5233199,
                "lng": 13.428
              }
            }
          },
          "summary": {
            "duration": 33,
            "length": 222,
            "baseDuration": 33
          },
          "polyline": "BGws6lkDk42zZ3F7CnGjD7V_JrEzF3DjDzK_EvHrE7BjhBTzoBN_Z",
          "transport": {
            "mode": "car"
          }
        }
      ]
    }
  ]
}

中間経由地を使用したルート計算の詳細および例について は、「中間経由地を経由したルート」を参照してください。

」に一致する結果は 件です

    」に一致する結果はありません