Google Maps API, without Login - javascript

I have google maps api on my application and I would like to create new maps on google map from my application. I know that this can be done, but you have to login and than data is send to you account. What I would like to do is to send data to just one accout, so that my users will not need to sign in to google.

If you are referring to API keys, starting with V3 you can access the Google Maps API without a key (it's no longer required).
http://code.google.com/apis/maps/documentation/javascript/basics.html#Welcome
Note: This version of the Google Maps JavaScript API no longer needs API keys!

Related

Google Maps API Error: This API key is not authorized to use this service or API. Places API error: ApiTargetBlockedMapError

I've started getting this error from a Google Maps widget within a CMS I use:
This API key is not authorized to use this service or API. Places API error: ApiTargetBlockedMapError
The error message provides a helpful link to this page, which includes the following text:
ApiTargetBlockedMapError Error
The Maps JavaScript API has not been authorized for the used API key.
Please check the API restrictions settings of your API key in the
Google Cloud Platform Console.
See API keys in the Google Cloud Platform Console. For more
information, see Using API Keys.
I know Google has tweaked this API in the past, so I went to the console and checked the permissions given for the key I am using. It includes these four permissions, include the Maps JavaScript API permission:
Geocoding API
Maps Embed API
Maps JavaScript API
Maps Static API
The only part not working is the address auto-complete. When I change to Don't Restrict Key mode so the key works with all services, it works fine. Any idea which service checkbox I might be missing? I'm wondering if Google is just displaying the wrong error.
Any ideas?
This is what I did. Updated.
Make sure you have enabled all the next Google Maps Services
If you have key restrictions, make sure you add the services like the next image..
Restart the project. It worked.
It turns out that Google has tweaked their permissions settings without updating the error. I had to give access to the Places API as well for the autocomplete to function.
I've submitted a PR to the CMS widget's documentation:
https://github.com/Frojd/wagtail-geo-widget/pull/59/files

This site or IP is not authorized to use this API key

I am trying to render google maps with the following link inside QlikView application
http://maps.google.com/staticmap?center=23.01,84.49&zoom=5&maptype=roadmap&size=640x400&key=XXXXXXXXXXXXXXXXXXXXXX&.jpg
(I have created a BROWSER API key)
The error message I am getting is (not in QlikView, but in browser, when I try to render the link using browser):
The Google Maps API server rejected your request. This site or IP is not authorized to use this API key.
I have actvated following Google services on my account:
Google Maps Android API v2
Google Maps JavaScript API v3
Static Maps API
Translate API
Already found this thread on StackOverflow: The Google Maps API server rejected your request
I have tried the following:
make sure the Referers is set to Any referer allowed
Make sure you have enabled "Static Maps API" service in addition to "Google Maps API".
Unfortunately, I am still getting the same error message.
Can anyone help please? Thanks.
generate key from https://console.developers.google.com/ for maps api of type browser key. And make sure that while calling document.referrer should be set to your domain.
Google API keys are binded to Domain Names, if you request a Google Service from a site that is not whitelisted the request gets tossed.
Go to your Google Console. https://console.developers.google.com/
Click in the left Menu API's & Auth then Credential
Under Public API access click create new key and choose on the next Page Browser Key. You are now forced to enter all Domain Names that are allowed to make API request with this key.
Enter your Domain names use the new key and you should ready to go.

Google Maps tracks API

I need help: I am developing an application with use Google Maps tracks API. I am not able to use the Google Maps tracks API. I am using the documentation.
In the documentation there's:
*Request and response format
The API accepts requests and returns responses in JavaScript Object Notation (JSON) format.
All requests are made using HTTP POST requests.
Base path
The API's base path is: https://www.googleapis.com/tracks/v1/path/to/method*
How do I import the map using Google Maps tracks API? Or how do I to show a map using Google Maps tracks API?
For example using Google Maps API v3 this code works:
src = 'https://maps.googleapis.com/maps/api/js?key=myKey&sensor=true';
I thought the code below is correct but doesn't work.
src = 'https://www.googleapis.com/tracks/v1/path/to/method?key=myKey&sensor=true';
Thanks for help.

using google maps api without a key

The instructions for v.3 of the Google Maps API say that I
should load the Maps API using an API key
Curiously it says I should..., rather than I must..... Anyhow, at the moment, I am not using an API key simply because (as far as I can remember) there was no mention of an API key when I was writing the code that calls this API.
Should I go back and add an API key to the URL that loads the API? It seems to work fine without the key, so I don't have any particular incentive to do this.
You're actually required to not have a key if you're a business user. Here's a quote from Google:
Google Maps API for Business developers must not include a key in their requests. Please refer to Loading the Google Maps JavaScript API for Business-specific instructions.
Normal users, however, will be fine with or without a key, although Google recommends having a key so you can monitor the API usage. Here is a quote verifying this:
The Google Maps JavaScript API V3 does not require a key, but there are benefits to using one.
You only need a key if you want to use the API management console to restrict access, collect usage statistics, etc. So, a key is recommended but not required.
See Obtaining an API key
In Api version 2 a key is required to run gmap out of localhost
in the API v3 a key is not required

API access to a manually-created Google Map

I have a number of public custom Google Maps created via http://maps.google.com/ - obviously associated with my google account.
Can I access these maps via the Google Maps javascript api? The api doesn't appear to work with the manually created maps located on maps.google.com from what I can tell?
And if not, is there another way to store overlay data (markers, etc) that the javascript api can grab and load into the map on the client's browser?
Am thinking a service like dabbleDB, except that I don't think they offer write access via javascript (this would be necessary for the user adding markers to the map, for example)
Obviously I could create a db layer on my server, but am looking for a 'cloud' solution that removes the strain from my databases!!
Digging into the no longer available Google Maps Data API lead me to that powerful and comprehensive Google Fusion where you can search nearest places within your own dataset such as find features within a radius. Enjoy !
See if GData Maps API is what you need.

Categories

Resources