Google Maps API error: Google Maps API error: ApiNotActivatedMapError - google-maps

I am trying to use google maps distance matrix api in my project to get distance between 2 places. I have also enable this api in google developer console. But I am continuously getting error ApiNotActivatedMapError.
I am using sample code provided by google as distance-matrix .

When you use a library or service via the Maps-Javascript-API, and use a key, you only need to activate the Google Maps JavaScript API .
When you get the particular error with the linked example you obviously didn't activate the Google Maps JavaScript API for your project.
Update:
since June 22, 2016 you need also to activate the related API(Webservice) for new applications when you want to use the following features:
geocoding service
directions service
distanceMatrix service
elevation service
places library

Old question.. But.. I had n similar issue recently with a ApiNotActivatedMapError using geocoding but Konerak's comment helped me get to this really nice post.
Basically, you can activate your API's here: https://console.developers.google.com/apis/library
Activating Google Maps JavaScript API along with the already activate Geocoding API solved my problem.
Hope it helps someone in a similar position :)

This link is enabled API https://console.developers.google.com/apis/library. For default emulator and in iOS its disabled, but in this console you can active this API.

Related

Google Maps JS API - Google My Maps tools

I am working on a project where an user could draw on a google map a polyline, polygon, walking, driving an cycling route.
All of those tools are available in Google My Maps app (link)
Here is a picture:
On google Maps API documentation I found library called Drawing tools (link to sample), but this is not what I am looking for. You can add to parameter drawingModes polyline and polygon, but there is no options for drawing a route.
Another picture:
So my questions are:
Is there a code or library or anything for tools from Google My Maps app (if there is, it could save me a lot of time - I need exactly what there is) (yes/no) (if yes, where? Ignore other two questions)
If not, are tools from My Maps (at least polyline and polygon) builded from library Drawing tools? (yes/no)
If yes, how can I add functionality to add routes? (please provide a simple sample or hint how to add one of the routes driving/cycling/walking)
I will try to address your question
Google MyMaps and Google Maps JavaScript API are different products managed by different teams at Google. I'm not aware about any third party library or tool that allows to use MyMaps functionality via Google Maps JavaScript API.
MyMaps tools are not related to drawing library of Google Maps JavaScript API as I mentioned before.
I can see the following feature request in the public issue tracker regarding the ability to access Google MyMaps via Google Maps JavaScript API. However, it doesn't look like the API team has set a high priority on this task.

Integrating Google Maps in OBIEE

I come to you in the hope of finding a solution to a problem I encountered when I embed Google Maps in OBIEE.
Indeed, after following the standard procedure defined on this link:
http://onlyobi.blogspot.fr/2014/03/obiee-11g-google-map-integration-guest.html
I get the following error appears in OBIEE:
"Google has disabled use of the Google Maps API for this application. The key provided is not a valid Google API key or is not a licensed version 3 API key
Google Maps Javascript on this site. If you are the owner of this applicatio, please go to ... "
Thank you for your support,
Have you tried using the maps visualization from Google? More details here:
https://developers.google.com/chart/interactive/docs/gallery/map
We use this in OBIEE to display certain data on maps.
Using MapViewer, we can integrate google maps with the OBIEE 11g/12c. More details is here:
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=363666329275914&parent=EXTERNAL_SEARCH&sourceId=HOWTO&id=1485088.1&_afrWindowMode=0&_adf.ctrl-state=rota6my7h_102

Google does not permit the use of the Maps API for this application

Good day.
Now i create api Key for browser apps (with referers).
Referers: *.invait.ru/*
But on site i get error:
Google does not permit the use of the Maps API for this application.
API Google key provided is invalid or do not have permission to use it
with Google Maps JavaScript API v3 on this site.
Screenshot:
Tell me please why i get it error and how remove error and use google map api v3?
For domain use Referers: invait.ru/*

Google maps: how to generate a key for Google Maps v2?

I have an old website that uses Google maps v2. Previously the website was running under http://domain1.edu. Now it is runs under http://domain2.edu. It appears that I need to update the map key.
On the internet, I was looking for how to do this. I find incomplete info at Google's own website. Here is the link for v2 map key: https://developers.google.com/maps/documentation/javascript/v2/introduction?csw=1#Obtaining_Key
It says:
To create your API key, visit the APIs Console at https://code.google.com/apis/console and log in with your Google Account.
Click the Services link from the left-hand menu, then activate the Google Maps API v2 service.
Once the service has been activated, your API key is available from the API Access page, in the Simple API Access section. Maps API applications use the Key for browser apps
First, I am unable to find "Google Maps API v2" service mentioned above. I am able to find Google Maps API v3, and so I enabled it. I used the key mentioned at https://developers.google.com/maps/documentation/javascript/tutorial#api_key
However, the website key is still not working.
Here is the page with Google map: http://nmai.si.edu/nafvf/attend.aspx
Anyone knows how to fix this?
Thanks and regards!
You are using the deprecated Google Maps Javascript API v2, those keys are no longer available (as the documentation you point to indicates). You need to use a v3 key, and make sure you have the referrers set correctly for that key (you really should update your map to use the v3 API...)
working example (copied from Mike Williams' v2 tutorial, just changed the key)
This link says how to generate the key for android. You need to get the SHA1 of your signing key and then gotto google console to generate the key.

Google Map API in my website

I'm confused as to what Google Map API I will implement to my website regarding this plot.
1 - My admin user will set the address of a place on the google map (probably in textboxes)
2 - The users can view the place set by the admin and has already a marker in that specific place.
What are the differences between the v2 and v3?
Thanks for helping.
To use API V2 you need a key and now it's impossible to get one because API V2 has been officially deprecated as of May 19, 2010, just like Marcelo said as a comment of your question.
You will need to use Api V3. Check the Google Maps JavaScript API v3 for more details.