Skip to content

Instantly share code, notes, and snippets.

@hutch120
Created September 21, 2018 02:50
Show Gist options
  • Save hutch120/9b4bb816bdc3b7101dbed4bd8e6853ba to your computer and use it in GitHub Desktop.
Save hutch120/9b4bb816bdc3b7101dbed4bd8e6853ba to your computer and use it in GitHub Desktop.
Mapbox output with roundabout issue
{
"routes": [
{
"geometry": "~_fiFc|fsZVL^?HKFALP|AN",
"legs": [
{
"summary": "Twentieth Avenue, Thirty Seventh Avenue",
"weight": 22.8,
"duration": 16.7,
"steps": [
{
"intersections": [
{
"out": 0,
"entry": [
true
],
"bearings": [
189
],
"location": [
144.875062,
-38.37456
]
},
{
"out": 1,
"in": 0,
"entry": [
false,
true,
false
],
"bearings": [
0,
120,
270
],
"location": [
144.874985,
-38.374837
]
},
{
"out": 2,
"in": 0,
"entry": [
false,
true,
true
],
"bearings": [
0,
90,
195
],
"location": [
144.875059,
-38.374934
]
},
{
"out": 1,
"in": 0,
"entry": [
false,
true,
true
],
"bearings": [
75,
180,
270
],
"location": [
144.874974,
-38.375
]
}
],
"driving_side": "left",
"geometry": "~_fiFc|fsZB?RL^?@C@EDABAB?D@BB@D@DbAFXF",
"mode": "driving",
"maneuver": {
"bearing_after": 189,
"bearing_before": 0,
"location": [
144.875062,
-38.37456
],
"type": "depart",
"instruction": "Head south on Twentieth Avenue"
},
"weight": 22.8,
"duration": 16.7,
"name": "Twentieth Avenue",
"distance": 110.4
},
{
"intersections": [
{
"in": 0,
"entry": [
true
],
"bearings": [
12
],
"location": [
144.874891,
-38.375472
]
}
],
"driving_side": "left",
"geometry": "tefiFa{fsZ",
"mode": "driving",
"maneuver": {
"bearing_after": 0,
"bearing_before": 192,
"location": [
144.874891,
-38.375472
],
"modifier": "left",
"type": "arrive",
"instruction": "You have arrived at your destination, on the left"
},
"weight": 0,
"duration": 0,
"name": "Thirty Seventh Avenue",
"distance": 0
}
],
"distance": 110.4
}
],
"weight_name": "routability",
"weight": 22.8,
"duration": 16.7,
"distance": 110.4
}
],
"waypoints": [
{
"name": "Twentieth Avenue",
"location": [
144.875062,
-38.37456
]
},
{
"name": "Thirty Seventh Avenue",
"location": [
144.874891,
-38.375472
]
}
],
"code": "Ok",
"uuid": "cjmbeo01l01553kq39b5wuj99"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment