Google Maps shows "For development purposes only"
For my purposes I ended up using an alternative https://www.openstreetmap.org/ .
As Victoria wrote, Google Maps is no longer free, but you can switch your map provider. You may be interested in OpenStreetMap, there is an easy way to use it on your site described here: https://handyman.dulare.com/switching-from-google-maps-to-openstreetmap/
Unfortunately, on the OpenStreetMap, there is no easy way to provide directions from one point to another, there is also no street view.
Watermarked with “for development purposes only” is returned when any of the following is true:
- The request is missing an API key.
- Billing has not been enabled on your account.
- The provided billing method is invalid (for example an expired credit card).
- A self-imposed daily limit has been exceeded.
Google Maps is no longer free. You have to associate a credit card so that you can get billed if your site has requests that exceed the $200 credit they give you monthly for free. That is why you get the watermarked maps.
For more information, see: https://cloud.google.com/maps-platform/pricing/
Update: A common problem with the new billing system is that you now have to activate each API separately. They all have different pricing (some are even free), so Google makes a point of having you enable them individually for your domain. I was never a heavy user of Google Maps, but I get the feeling that there are many more APIs now than there used to be.
So if you're still getting a restricted usage message after you've enabled billing, find out what API you need exactly for the features you want to offer, and check if it's enabled. The API settings are annoyingly hard to find.
- Go to this link: https://console.developers.google.com/apis/dashboard.
- Then you select your project in the dropdown.
- Go to library on the left pane.
- Browse the available APIs and enable the one you need.