Created
February 27, 2014 19:40
-
-
Save etexier/9257724 to your computer and use it in GitHub Desktop.
rest-by-example for google geocode api
This file contains hidden or 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
| #Request | |
| http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true | |
| #Response | |
| { | |
| "results" : [ | |
| { | |
| "address_components" : [ | |
| { | |
| "long_name" : "1600", | |
| "short_name" : "1600", | |
| "types" : [ "street_number" ] | |
| }, | |
| { | |
| "long_name" : "Amphitheatre Parkway", | |
| "short_name" : "Amphitheatre Pkwy", | |
| "types" : [ "route" ] | |
| }, | |
| { | |
| "long_name" : "Mountain View", | |
| "short_name" : "Mountain View", | |
| "types" : [ "locality", "political" ] | |
| }, | |
| { | |
| "long_name" : "Santa Clara County", | |
| "short_name" : "Santa Clara County", | |
| "types" : [ "administrative_area_level_2", "political" ] | |
| }, | |
| { | |
| "long_name" : "California", | |
| "short_name" : "CA", | |
| "types" : [ "administrative_area_level_1", "political" ] | |
| }, | |
| { | |
| "long_name" : "United States", | |
| "short_name" : "US", | |
| "types" : [ "country", "political" ] | |
| }, | |
| { | |
| "long_name" : "94043", | |
| "short_name" : "94043", | |
| "types" : [ "postal_code" ] | |
| } | |
| ], | |
| "formatted_address" : "1600 Amphitheatre Parkway, Mountain View, CA 94043, USA", | |
| "geometry" : { | |
| "location" : { | |
| "lat" : 37.4219985, | |
| "lng" : -122.0839544 | |
| }, | |
| "location_type" : "ROOFTOP", | |
| "viewport" : { | |
| "northeast" : { | |
| "lat" : 37.4233474802915, | |
| "lng" : -122.0826054197085 | |
| }, | |
| "southwest" : { | |
| "lat" : 37.4206495197085, | |
| "lng" : -122.0853033802915 | |
| } | |
| } | |
| }, | |
| "types" : [ "street_address" ] | |
| } | |
| ], | |
| "status" : "OK" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment