通常時の所要時間を取得

これは、ルートに必要な特定の時間帯の標準的な所要時間を取得する、 乗用車ルーティングリクエストです。

curl -X GET \
'https://router.hereapi.com/v8/routes?origin=50.971173,1.900859&destination=50.96035,1.905025&return=summary,typicalDuration&transportMode=car&apikey={YOUR_API_KEY}'
{
    "routes": [
        {
            "id": "691881f2-d1fe-4917-940b-aa4bffe38133",
            "sections": [
                {
                    "id": "278c10be-8968-49b6-8ef1-1f169e38be1d",
                    "type": "vehicle",
                    "departure": {
                        "time": "2021-08-04T20:58:18+02:00",
                        "place": {
                            "type": "place",
                            "location": {
                                "lat": 50.9711825,
                                "lng": 1.9008949
                            },
                            "originalLocation": {
                                "lat": 50.9711729,
                                "lng": 1.900859
                            }
                        }
                    },
                    "arrival": {
                        "time": "2021-08-04T20:59:16+02:00",
                        "place": {
                            "type": "place",
                            "location": {
                                "lat": 50.9603594,
                                "lng": 1.905304
                            },
                            "originalLocation": {
                                "lat": 50.96035,
                                "lng": 1.905025
                            }
                        }
                    },
                    "summary": {
                        "duration": 58,
                        "length": 1244,
                        "baseDuration": 52,
                        "typicalDuration": 55
                    },
                    "transport": {
                        "mode": "car"
                    }
                }
            ]
        }
    ]
}

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

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