promote google maps api without showing my key - google-maps

i have a google maps api key. full packet (javascript api - geocoding - streetview another etc..)
Google creates an image on the map (it becomes img src), but my request is not to show the api key when assigning this link, the image page to my potential customer.
Example link below (YOUR_API_KEY part) if you enter the api key, the image will appear, but it is meaningless to throw it like this, if I put the api key, it can also use it..
Click to show image
What is your suggestion?

There are two options:
Proxy the request through your server
Use signed urls (turn quota to zero for unsigned requests) for static maps. See https://developers.google.com/maps/documentation/maps-static/get-api-key for more information.

Related

GMaps RefererDeniedMapError - JS Browser key

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

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.

Which API key is needed to use Google Maps API?

Here is the link I'm trying to access:
https://maps.googleapis.com/maps/api/place/textsearch/xml?query=restaurants+in+Sydney&sensor=true
According to some documentation on Google.com, it doesn't look like an API key is needed for their Maps service anymore. Can anyone see why the link I posted above wouldn't work?
If it does need an API key, could someone specific which API key is needed from Google?
In this case you should add a key
Required parameters
query — The text string on which to search, for example: "restaurant". The Place service will return candidate matches based on this string and order the results based on their perceived relevance.
key — Your application's API key. This key identifies your application for purposes of quota management and so that Places added from your application are made immediately available to your app. Visit the APIs Console to create an API Project and obtain your key.
sensor — Indicates whether or not the Place request came from a device using a location sensor (e.g. a GPS) to determine the location sent in this request. This value must be either true or false.
https://developers.google.com/places/documentation/search
Not exactly. Some of their APIs to not require keys with each request, but you must still authenticate. From their developer docs:
All Maps API applications* should load the Maps API using an API key.
You can read about the different APIs and their requirements here.

What data is sent to Google Maps API

I have searched for information on data and data security when using the Google Maps API, but I haven't been able to find anything that answers my specific question. We were looking to use Google Maps to to plot our customers and overlay some other information on top. I have all the customer details (name, address, postcode, Lat, Lon and other key details) in a file and have been using some test data. I have successfully been able to plot the test data on Google Maps and it looks like it is exactly what I would want to use.
The question I have is what data is sent to Google for the map to be rendered - does all of my data go external, or am I just pulling the maps back to the browser and rendering the data locally within the browser (ie. no data goes externally).
Thanks
Your additional data are never sent to Google servers. All the map is built in JS, so once you have loaded Gmap scripts, there is no need to sent data.
You can check that in your browser developer console : no additional AJAX request are made to Google, once the first one for displaying map is finished.
If you use geocoder or directions service (and maybe other services, but I have never use them), you have to send addresses or LatLng to Google via AJAX in order to make calculation.

Google maps geocoding API inconsistent

I have a server application that calls the google maps geocoding API at http://maps.googleapis.com/maps/api/geocode/json
I experience that when the server application invokes such an URL, the response is sometimes ZERO_RESULTS.
If I take the exact same URL and paste in a browser, I get a valid result back.
Any ideas to what differences can cause this? HTTP headers? Something else?
In the link you provided it is missing the address, components, latlng or place_id parameters, besides the Google Map API KEY.
You need at least one of the parameters and the Key to get a proper response.
e.g.
https://maps.googleapis.com/maps/api/geocode/json?place_id=ChIJ1xwGTLE1K4gRmzFDd_1HzPc&key=xxx
Just add your KEY and it should work.