valid json for routing

This commit is contained in:
Asim Aslam
2021-06-01 15:03:08 +01:00
parent 26bf7a7535
commit 3f0e1364f9

View File

@@ -30,8 +30,7 @@
} }
}, },
"response": { "response": {
"directions": [ "directions": [{
{
"name": "Torstraße", "name": "Torstraße",
"instruction": "depart ", "instruction": "depart ",
"distance": 748.7000122070312, "distance": 748.7000122070312,
@@ -44,8 +43,7 @@
}, },
"action": "depart" "action": "depart"
}, },
"intersections": [ "intersections": [{
{
"location": { "location": {
"latitude": 52.529432, "latitude": 52.529432,
"longitude": 13.397627 "longitude": 13.397627
@@ -139,8 +137,7 @@
"action": "turn", "action": "turn",
"direction": "left" "direction": "left"
}, },
"intersections": [ "intersections": [{
{
"location": { "location": {
"latitude": 52.527166, "latitude": 52.527166,
"longitude": 13.387215 "longitude": 13.387215
@@ -325,8 +322,7 @@
}, },
"action": "arrive" "action": "arrive"
}, },
"intersections": [ "intersections": [{
{
"location": { "location": {
"latitude": 52.517036, "latitude": 52.517036,
"longitude": 13.388798 "longitude": 13.388798
@@ -334,12 +330,10 @@
"bearings": [ "bearings": [
354 354
] ]
} }]
]
} }
], ],
"waypoints": [ "waypoints": [{
{
"name": "Torstraße", "name": "Torstraße",
"location": { "location": {
"latitude": 52.529432, "latitude": 52.529432,
@@ -521,8 +515,7 @@
"response": { "response": {
"distance": 1899.800048828125, "distance": 1899.800048828125,
"duration": 258.20001220703125, "duration": 258.20001220703125,
"waypoints": [ "waypoints": [{
{
"name": "Torstraße", "name": "Torstraße",
"location": { "location": {
"latitude": 52.529432, "latitude": 52.529432,
@@ -682,7 +675,8 @@
"latitude": 52.517036, "latitude": 52.517036,
"longitude": 13.388798 "longitude": 13.388798
} }
}] }
]
} }
}] }]
} }