Last active
August 29, 2015 14:08
-
-
Save etexier/9489ec86fdf997225fb9 to your computer and use it in GitHub Desktop.
curl command for google distance API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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