Geocoding

GET https://maps.googleapis.com/maps/api/geocode/json?key={{googleMapsGeocodingApiKey}}&address={{address}}

The Google Maps Geocoding API is a service that provides geocoding and reverse geocoding of addresses.

Geocoding is the process of converting addresses (like a street address) into geographic coordinates (like latitude and longitude), which you can use to place markers on a map, or position the map.

Read more about the Google Maps Geocoding API.

Get your Google Maps Geocoding API key here:

[Geocoding key](https://s3.amazonaws.com/Qodex-static-getQodex-com/Qodex-docs/sushi-geocoding-key.png)

Request Params

KeyDatatypeRequiredDescription
keystringGet your key here
addressstringSpecify a combination of address, neighborhood, city, state, or zip to be used when searching for places (e.g. "49 Geary St, San Francisco")

RESPONSES

status: OK

{"results":[{"address_components":[{"long_name":"49","short_name":"49","types":["street_number"]},{"long_name":"Geary Street","short_name":"Geary St","types":["route"]},{"long_name":"Financial District","short_name":"Financial District","types":["neighborhood","political"]},{"long_name":"San Francisco","short_name":"SF","types":["locality","political"]},{"long_name":"San Francisco County","short_name":"San Francisco 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":"94108","short_name":"94108","types":["postal_code"]},{"long_name":"5728","short_name":"5728","types":["postal_code_suffix"]}],"formatted_address":"49 Geary St, San Francisco, CA 94108, USA","geometry":{"location":{"lat":37.787698,"lng":-122.4042883},"location_type":"ROOFTOP","viewport":{"northeast":{"lat":37.7890469802915,"lng":-122.4029393197085},"southwest":{"lat":37.7863490197085,"lng":-122.4056372802915}}},"place_id":"ChIJH8_y9YiAhYAR0QiFIkrG43k","types":["street_address"]}],"status":"OK"}