Skip to content

Instantly share code, notes, and snippets.

@gustavompo
Created February 9, 2015 13:41
Show Gist options
  • Save gustavompo/0654caef12dba9d8e54e to your computer and use it in GitHub Desktop.
Save gustavompo/0654caef12dba9d8e54e to your computer and use it in GitHub Desktop.
Result from a single route request with default 'result' elements
{
Status: {
Code: "OK"
},
Routes: [{
RouteIdentification: "main-route",
Summary: {
Duration: 1841.84,
Distance: 21477,
Origin: {
Address: {
StreetName: "R. Açucena",
City: "Osasco",
State: "SP",
Country: "BRA",
ZipCode: "06110160"
},
MappedLocation: {
Longitude: -46.79151,
Latitude: -23.53265
}
},
Destination: {
Address: { ... },
MappedLocation: { ... }
}
},
Legs: [{
Duration: 1724.84,
Distance: 21464,
StartAddress: { ... },
EndAddress: { ... },
StartLocation: { ... },
EndLocation: { ... },
Steps: [{
Instruction: "Turn Right",
Distance: 152,
Duration: 22.77,
Location: { ... },
Address: { ... }
}, {
Instruction: "Turn Right",
Distance: 113,
Duration: 16.91,
Location: { ... },
Address: { ... }
} ....]
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment