距離の範囲に基づいてサービスエリアを計算する方法 - Amazon Location Service

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

距離の範囲に基づいてサービスエリアを計算する方法

CalculateIsolines API を使用すると、道路ネットワークと交通状況を考慮して、指定された時間または距離の範囲内で到達可能なサービスエリアを特定できます。この機能は、レストラン、食料品店、またはその他のサービスプロバイダーのサービスエリアの定義におけるアプリケーションをサポートします。これは、燃料効率の計画やサービスカバレッジのアクセス可能なエリアの定義に役立ちます。

潜在的なユースケース

  • サービスエリアの計画: この API を使用して、レストランや食料品配送などのサービスのアクセス可能なエリアを、移動時間や距離に基づいて計画します。

Sample request
{ "Origin": [ -123.11679620827039, 49.28147612192166 ], "DepartureTime": "2024-10-28T21:27:56Z", "Thresholds": { "Distance": [ 1000, 2000, 3000 ] }, "TravelMode": "Car" }
Sample response
{ "DepartureTime": "2024-10-28T14:27:56-07:00", "IsolineGeometryFormat": "FlexiblePolyline", "Isolines": [ { "Connections": [], "DistanceThreshold": 1000, "Geometries": [ { "PolylinePolygon": [ "Redacted" ] } ] }, { "Connections": [], "DistanceThreshold": 2000, "Geometries": [ { "PolylinePolygon": [ "Redacted" ] } ] }, { "Connections": [], "DistanceThreshold": 3000, "Geometries": [ { "PolylinePolygon": [ "Redacted" ] } ] } ], "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": { "Distance": [ 1000, 2000, 3000 ] }, "TravelMode": "Car" }'
AWS CLI
aws geo-routes calculate-isolines --key ${YourKey} \ --origin -123.11679620827039 49.28147612192166 \ --departure-time "2024-10-28T21:27:56Z" \ --thresholds '{"Distance": [1000, 2000, 3000]}' \ --travel-mode "Car"