Skip to main content
Google Maps Banner

Google Maps API Error: ApiNotActivatedMapError

I have worked on loads of projects using the Google Maps API. It used to be a simple case of enabling the the Maps JavaScript API and you were off. This is not the case any more.

 

After setting up a new project to get a location from a postcode the other day I came across the error “ApiNotActivatedMapError”. I checked and the Maps JavaScript API was enabled.

 

After a bit of digging, since 22nd June 2018 Google has updated their business model. Each API has its own separate billing, and for that reason each API must be enabled individually. To get Geocoding on Google Maps to work properly the following APIs need to be enabled.

  • Maps JavaScript API
  • Geocoding Service
  • Directions Service
  • Distance Matrix Service
  • Elevation Service
  • Places Library

 

Unfortunately the Google Console API Manager doesn’t seem to work properly. When you search for an API other than Maps JavaScript API they wont show up. To access them you must go back to the project dashboard, click “Go to APIS overview”, and then click “ENABLE APIS AND SERVICES” This is where you will be able to see the correct APIs.

 

Now your maps should work!