GMaps RefererDeniedMapError - JS Browser key - google-maps

Since last week, we have been facing an issue related to the maps loading in our customer website.
Website pages' and domains are:
http://eduscopio.it/percorso-studenti-scelta-scuola-superiore (click on the search icon to jump to the map slide)
http://lavoro.eduscopio.it/percorso-studenti-scelta-scuola-superiore (click on the search icon to jump to the map slide)
The javascript console shows us "js?key=:32 Google Maps API error: RefererDeniedMapError".
After reading the documentation, and many topics on forum and stackoverflow, we tried to perform these operations in order to try get the map working again:
we added the api key (the website wasn't using it)
we rebuilt part of the layout to allow the Google logo and TOS to be clickable and viewable (they where partly hidden or not clickable due to an overlay)
we restricted domains and allowed the use of api key to some certain domains
we tried to renew the api key many times
The websiste is public and the usage is free without any sort of subscription. According to the API console, we didn't reach the quota limit.
On the API console there are no more details provided in regards to the error an no one between us has been contacted via e-mail
Thank you in advance, best regards

Related

Cannot Locate Google Maps Static Map API Key

How do I obtain an API Key to embed static Google Maps images in my website?
So I want to embed Google Maps images on my site for locations I have the lat and long for. Building the URL is easy enough, but I'm having a world op trouble locating my API Key.
I've enabled the Static Maps API in the console, but the documentation I can find (https://developers.google.com/maps/documentation/embed/guide) specifies that I should proceed to the Services item in the left-hand menu. However, there is no such Services item in the left-hand menu in the Console. And the screen captures included with the documentation seem to refer to earlier versions of the Console (mine is more modern and responsive--unfortunately, I cannot include a screen capture).
How do I obtain an API Key to embed static Google Maps images in my website?
First of all, the document you have linked is a different API altogether.
Here's the link for Static Map API key documentation.
Now with regard to locating the API key, you're probably looking at an updated version of Developers Console. On Left go to APIs & auth instead.
Choose the API(s) you want for your application. Activate them.
Then go to Credentials on left. This is where you'll find the key.

Access Denied when attempting to use Google Maps Geocoding Service with a Console API Key

UPDATE: In an effort to give a more clear question. How do I use the Google Console API key with the Google Maps Geocoding Web Service API? At the moment the request comes back as denied, when I specify the key but even though it failed it is logged in the Google Console API site's reports section.
Original Question
I have an existing app that has been modified to start geocoding address at the time they are entered (for use within the app on a Google Map). The volume expected for this is expcted to be within the free offering's limites and does not require a key at this time. However now I have to geocode all of the existing addresses. I have a small windows app (C#) that will loop through them one at a time, request they be geocoded (via https://maps.googleapis.com/maps/api/geocode/json) and store the results in the database. However I keep running into the query limit. To help alleviate this I've setup an account on Google API Console (https://code.google.com/apis/console/) so that I get go over the limit and just be billed for the overages.
The problem is in order to do utilize this billing alternative I have to provide a Console API Key to the request, but every time I do so I get a response back with a status of REQUEST_DENIED.
My URL looks like this
https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA+94043&sensor=false&key=123abc
If I take off the key it works fine, but with it on it fails. Now, I have seen other questions similar to this when looking around but can find no answer to the issue.
I've tried various alternate domains including maps.google.com, maps.googleapis.com and maps-api-ssl.google.com all seem to have the same problem from what I can tell.
Here's what I've been able to find out so far:
The service is listed in the Google Console API's site as Google Maps API v3, (there is a separate entry for v2) so I don't think it's a problem with keys no longer being mandatory in v3.
I know the requests are getting through and being correctly logged against this API key because with each failed attempt the request count goes up by one on the Reports tab of the Google APIs Console.
*I know it's not a problem with it not being accessed via a web page because the Console API explicitly lets you generates keys intended for Server/Service use and you can restrict access to them via IP address, not URL Referrer.
*I've also verified the parameter syntax as it's outlined on this page, as are other usage
*These seem to be generic to the Console API system but there is no mention of exceptions to these practices when used for the Google Maps API.
I even tried to contact Google but apparently they don't offer support over the phone (I was hoping to be done with this today but that's not looking likely).
It seems the key is not necessary anymore, since it doesn't increase your limit of free geocodings.
It was a legacy of v2, but geocoding API v2 was fully deprecated last March, 8.
If you need to use more than the free limit, I think you must adquire the Enterprise license.
Regards,
Eduardo.
I ran into this same issue and solved it by enabling the Geocoding API on the Google apis dashboard. Even though I'm using the Google Maps JavaScript API v3, it still required me to enable the Geocoding API as well. Make sure you understand the google's quota limits and billing system before enabling any API access. Hope this helps!
Late to this answer, but just in case anyone else has issue. Billing needs to be setup first and like Dylan said you also have to enable Geocoding API(this got me). At least I did for my locations app that shows multiple store location addresses.

Google Maps API Key - Get one for everyone of my users programmatically?

I saw that one has not to obtain a Google Maps API key if you want to use their maps api in general, only if you want to use their web services and statistics etc.
Now I have two questions regarding this:
If I have a public website which uses the Google Maps API to display a map with default options. How does Google count the API calls if I don't use an API key? (Maybe with the help of the domain which requests the map?)
If they do so and my site exceeds the 25k calls/day, is there a possiblity that my users can login with their Google account on my site and some backend logic will get them an API key from Google that I store e.g. in a database. So I could use the API keys of my users to bypass the API usage limits only for my site.
Assuming you are using the Javascript API v3:
This SO question partially answers your queries.
Have a look at the usage limits, it looks like that you cannot use more than one API key:
Can I use more than one API key to increase my available usage over
the documented limits?
Google reserves the right to withhold access to the Maps API from any site that attempts to use more than the permitted number of map
loads of the Maps API without permission, and fails to respond when
contacted by Google.
Though this may be debatable, to me it seems a bad idea using your user's API key. For sure you need to ask the permission, then you have to monitor their quotas and so on, a minefield...
TL;DR if you exceed constantly the daily quota you should purchase a larger quota.

Will Google Places Autocomplete return places my app has added via place report?

I am looking to find out if Google Places Autocomplete should return results including my submitted places.
I have submitted a place to the Place Report endpoint, and got an
id and ref back.
I then want my users to be able to select that
place from an autocomplete box - along with all the other results.
I have added the browser API key to the Javascript src.
Is this how it's designed to work, 'cos it's not working like that at the moment - or am I being impatient / doing something wrong.
I have verified my Place has been added by calling up the details using the reference it returned when I added it...
Your Place Reports are supposed to be available immediately to your application, but they must pass through a Google moderation process before they become generally available to all users. From the User Place Reports section of the Google Places API Docs:
Place Report requests are used to add new Places, or delete existing
ones. New Places will be available immediately in Place Searches
initiated by your application, and will enter the moderation queue to
be considered for Google Maps. A newly-added Place will not be
available to other applications until it has been approved by the
moderation process.
It isn't clear from your question exactly how you performed your Place Report, so I assumed you had used the Google Places API.
Some additional info, based on your comment:
It makes sense that you can see the place you have added using the Places API, but that it doesn't appear when using Autocomplete. The Places API is designed to be very thorough (and of course, the new place was added by your application), while the Autocomplete is focused on being high-speed, low-latency, and is based almost entirely on how Google rates the prominence of nearby places. Assuming the newly added place has not yet had many clicks, ratings, etc. on maps.google.com, it makes sense that it will not yet rate very highly in prominence.
There is some very good information about the differences between the Autocomplete tool and the general Places API in the Autocomplete Demo & Places API Demo & Discussion Video, given by Paul Saxman, a Developer Advocate at Google and Marcelo Camelo, Google's Technical Lead for the Places API. There is a portion near the end where they discuss adding new places and I think it will help clarify the results you are seeing. Anyway, I hope it helps -

Google APIs Verification

I am attempting to add a Google maps to a website and allow users to insert their postcode to get directions to my client.
Currently I can't manage to make the map visible, the website although under development IS hosted and I have my own unique api key.
Is there more verification necessary? I read something about meta tags but was unsure how to get a code.
Unless your expecting or are getting more than 25000 hits a day, you don't need an API key for the current version of google maps, so requesting it with http://maps.google.com/maps/api/js?sensor=true should work then use a library like this should get it to work http://code.google.com/p/jquery-ui-map/wiki/jquery_ui_map_v_3_tutorial
Follow that tutorial and you'll have it running in no time.