Skip to content

Instantly share code, notes, and snippets.

@geoffeg
Last active August 28, 2020 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geoffeg/606666838e914c7b37dab76f9a9b2001 to your computer and use it in GitHub Desktop.
Save geoffeg/606666838e914c7b37dab76f9a9b2001 to your computer and use it in GitHub Desktop.
route api response
{
"route" : "KMSY SQS J35 MEM KSTL",
"summary" : {
"distance" : 553,
"time" : 83,
"ground-speed" : 436,
"altitude" : 37000
},
"segments" : [
{
"id" : "KMSY",
"coordinates": [-73.7786111111111, 40.64],
"type" : "Airport",
"leg" : {
"course" : 123,
"distance" : 90,
"time" : 13
}
},
{
"id" : "SQS",
"coordinates": [-73.7786111111111, 40.64],
"type" : "VOR",
"leg" : {
"course" : 109,
"distance" : 0,
"time" : 13
}
},
{
"id" : "J35",
"type" : "Airway",
"leg" : {
"course" : 109,
"distance" : 20,
"time" : 13
},
"segments" : [
{
"id" : "DLITE",
"coordinates": [-73.7786111111111, 40.64],
"type" : "Waypoint",
"leg" : {
"course" : 109,
"distance" : 20,
"time" : 13
}
},
{
"id" : "FATSS",
"coordinates": [-73.7786111111111, 40.64],
"type" : "Waypoint",
"leg" : {
"course" : 109,
"distance" : 20,
"time" : 13
}
},
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment