Geocode

Geo code test

{ "results" : [ { "address_components" : [ { "long_name" : "Oxford", "short_name" : "Oxford", "types" : [ "locality", "political" ] }, { "long_name" : "Oxford", "short_name" : "Oxford", "types" : [ "postal_town" ] }, { "long_name" : "Oxfordshire", "short_name" : "Oxfordshire", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "England", "short_name" : "England", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "United Kingdom", "short_name" : "GB", "types" : [ "country", "political" ] } ], "formatted_address" : "Oxford, UK", "geometry" : { "bounds" : { "northeast" : { "lat" : 51.7963006, "lng" : -1.1751763 }, "southwest" : { "lat" : 51.704532, "lng" : -1.3199994 } }, "location" : { "lat" : 51.7520209, "lng" : -1.2577263 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 51.7963006, "lng" : -1.1751763 }, "southwest" : { "lat" : 51.704532, "lng" : -1.3199994 } } }, "place_id" : "ChIJrx_ErYAzcUgRAnRUy6jbIMg", "types" : [ "locality", "political" ] } ], "status" : "OK" }

cURL

{ "results" : [ { "address_components" : [ { "long_name" : "Oxford", "short_name" : "Oxford", "types" : [ "locality", "political" ] }, { "long_name" : "Oxford", "short_name" : "Oxford", "types" : [ "postal_town" ] }, { "long_name" : "Oxfordshire", "short_name" : "Oxfordshire", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "England", "short_name" : "England", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "United Kingdom", "short_name" : "GB", "types" : [ "country", "political" ] } ], "formatted_address" : "Oxford, UK", "geometry" : { "bounds" : { "northeast" : { "lat" : 51.7963006, "lng" : -1.1751763 }, "southwest" : { "lat" : 51.704532, "lng" : -1.3199994 } }, "location" : { "lat" : 51.7520209, "lng" : -1.2577263 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 51.7963006, "lng" : -1.1751763 }, "southwest" : { "lat" : 51.704532, "lng" : -1.3199994 } } }, "place_id" : "ChIJrx_ErYAzcUgRAnRUy6jbIMg", "types" : [ "locality", "political" ] } ], "status" : "OK" }
Shopping Cart