Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Michael M CreditAttribution: Michael M commentedOn 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.