Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.
So finden Sie eine Route für einen Start- und Zielort
Die CalculateRoutes API hilft Ihnen dabei, die besten Strecken zwischen Abflug- und Zielort sowie die besten Ruhezeiten für Fahrer zu finden. Es unterstützt Reisemodi wie Lkw, Fußgänger, Auto und Roller. Es unterstützt auch bis zu 25 Wegpunkte (Zwischenstopps), einschließlich Start- und Zielort, mit nur wenigen Einschränkungen.
Mögliche Anwendungsfälle
Beispiele
- Sample request
-
{
"Origin": [
-123.118105,
49.282423
],
"Destination": [
-123.020098,
49.232872
]
}
- Sample response
-
{
"LegGeometryFormat": "FlexiblePolyline",
"Notices": [],
"Routes": [
{
"Legs": [
{
"Geometry": {
"Polyline": "Redacted"
},
"TravelMode": "Car",
"Type": "Vehicle",
"VehicleLegDetails": {
"AfterTravelSteps": [],
"Arrival": {
"Place": {
"ChargingStation": false,
"OriginalPosition": [
-123.020098,
49.232872
],
"Position": [
-123.0203051,
49.2328499
]
}
},
"Departure": {
"Place": {
"ChargingStation": false,
"OriginalPosition": [
-123.1181051,
49.282423
],
"Position": [
-123.1180883,
49.2824349
]
}
},
"TravelSteps": [
{
"Distance": 1288,
"Duration": 102,
"Type": "Depart"
},
{
"Distance": 262,
"Duration": 24,
"Type": "Ramp"
},
{
"Distance": 1356,
"Duration": 134,
"Type": "Turn"
},
{
"Distance": 7092,
"Duration": 568,
"Type": "Keep"
},
{
"Distance": 65,
"Duration": 26,
"Type": "Turn"
},
{
"Distance": 50,
"Duration": 18,
"Type": "Turn"
},
{
"Distance": 0,
"Duration": 0,
"Type": "Arrive"
}
]
}
}
]
}
]
}
- cURL
-
curl --request POST \
--url 'https://routes.geo.eu-central-1.amazonaws.com/v2/routes?key=Your_key' \
--header 'Content-Type: application/json' \
--data '{
"Origin": [
-123.118105,
49.282423
],
"Destination": [
-123.020098,
49.232872
]
}'
- AWS CLI
-
aws geo-routes calculate-routes --key ${YourKey} \
--origin -123.118105 49.282423 \
--destination -123.020098 49.232872