翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
時間範囲に基づいてサービスエリアを計算する方法
CalculateIsolines API を使用すると、道路ネットワークと交通状況を考慮して、指定された時間または距離の範囲内で到達可能なサービスエリアを特定できます。この機能は、レストラン、食料品店、またはその他のサービスプロバイダーのサービスエリアの定義におけるアプリケーションをサポートします。これは、燃料効率の計画やサービスカバレッジのアクセス可能なエリアの定義に役立ちます。
潜在的なユースケース
例
- Sample request
-
{
"Origin": [
-123.11679620827039,
49.28147612192166
],
"DepartureTime": "2024-10-28T21:27:56Z",
"Thresholds": {
"Time": [
500,
1000,
1500
]
},
"TravelMode": "Car"
}
- Sample response
-
{
"DepartureTime": "2024-10-28T14:27:56-07:00",
"IsolineGeometryFormat": "FlexiblePolyline",
"Isolines": [
{
"Connections": [],
"Geometries": [
{
"PolylinePolygon": [
"Redacted"
]
}
],
"TimeThreshold": 500
},
{
"Connections": [],
"Geometries": [
{
"PolylinePolygon": [
"Redacted"
]
}
],
"TimeThreshold": 1000
},
{
"Connections": [],
"Geometries": [
{
"PolylinePolygon": [
"Redacted"
]
}
],
"TimeThreshold": 1500
}
],
"SnappedOrigin": [
-123.11687,
49.2813999
]
}
- cURL
-
curl --request POST \
--url 'https://routes.geo.eu-central-1.amazonaws.com/v2/isolines?key=Your_key' \
--header 'Content-Type: application/json' \
--data '{
"Origin": [
-123.11679620827039,
49.28147612192166
],
"DepartureTime": "2024-10-28T21:27:56Z",
"Thresholds": {
"Time": [
500,
1000,
1500
]
},
"TravelMode": "Car"
}'
- AWS CLI
-
aws geo-routes calculate-isolines --key ${YourKey} \
--origin -123.11679620827039 49.28147612192166 \
--departure-time "2024-10-28T21:27:56Z" \
--thresholds '{"Time": [500, 1000, 1500]}' \
--travel-mode "Car"