Google Maps Geocoding API

If you are using the API key, you'll have to enable the Geocoding API as well. This API is required to convert any plain text location into a pair of coordinates, for example "New York, NY, USA" will translate to "40.712784,-74.005941".

Enabling it is very simply, it only requires a couple of clicks:

  1. Create a project and retrieve the API key as shown in the previous chapter

  2. While you are inside the Console API, navigate to into the Library page

  3. Click on the Google Maps Geocoding API

    Figure 2.13. Google Maps Geocoding API: Select the API

    Google Maps Geocoding API: Select the API

  4. Click on the Enable button

    Figure 2.14. Google Maps Geocoding API: Enabling the API

    Google Maps Geocoding API: Enabling the API

  5. Congratulations! You're done!