Skip to content

Instantly share code, notes, and snippets.

@etexier
Last active August 29, 2015 14:08
Show Gist options
  • Save etexier/9489ec86fdf997225fb9 to your computer and use it in GitHub Desktop.
Save etexier/9489ec86fdf997225fb9 to your computer and use it in GitHub Desktop.
curl command for google distance API
curl 'http://maps.googleapis.com/maps/api/distancematrix/json?origins=435+Tasso+Street+Palo+Alto+CA&destinations=Embarcadero+Street+San+Francisco+CA&sensor=false&mode=driving&language=en&units=imperial'
{
"destination_addresses" : [ "Embarcadero North Street, San Francisco, CA, USA" ],
"origin_addresses" : [ "435 Tasso Street, Palo Alto, CA 94301, USA" ],
"rows" : [
{
"elements" : [
{
"distance" : {
"text" : "34.4 mi",
"value" : 55389
},
"duration" : {
"text" : "46 mins",
"value" : 2740
},
"status" : "OK"
}
]
}
],
"status" : "OK"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment