I have installed the Home module which works fine. However, each time I enter a new home with an address, when saving I get 'The mapping for %address could not be done'. When I use the same address on Googlemaps it works fine. I have an API key. My server is locally on my machine for testing, so I access it via http://127.0.0.1
Do I have to create a specific API key for 127.0.0.1 ? Or can I just take the one based on the future domain name of the site?
Anyone had this issue? Please?

Comments

Michael M’s picture

On your test machine, you need an API key based on the address used to access the drupal site. If you are testing at "http://localhost/drupal" then you need an API key for that.

On your production site, you should create an API key for the domain (i.e. "http://example.com" ).

When a user tries to access a page with a map and the key is not for the domain, the user will receive an error message from Google. This is the easiest way for you to test your API key.