Skip to content

Instantly share code, notes, and snippets.

@etexier
Created January 16, 2014 23:58
Show Gist options
  • Select an option

  • Save etexier/8465915 to your computer and use it in GitHub Desktop.

Select an option

Save etexier/8465915 to your computer and use it in GitHub Desktop.
Rest by example text file
# This is a sample request:
# Request
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
# This is the expected response:
# Response
{
"destination_addresses" : [ "Embarcadero, 298 Market Street, San Francisco, CA 94111, USA" ],
"origin_addresses" : [ "435 Tasso Street, Palo Alto, CA 94301, USA" ],
"rows" : [
{
"elements" : [
{
"distance" : {
"text" : "33.1 mi",
"value" : "53242"
},
"duration" : {
"text" : "42 mins",
"value" : "2512"
},
"status" : "OK"
}
]
}
],
"status" : "OK"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment