Google Map API in my website - google-maps

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.

Related

Google Maps API error: Google Maps API error: ApiNotActivatedMapError

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.

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

Why is my Google Maps API v2 still working

I have a google map on my site for showing visitors where events are held, in the back end of the site, the user can enter an address find the location and then drag the marker to the specific location. For this i am using Google Maps APi v2 but it is still working.
Should it not of stopped working after the API was made redundant? Or how long will it still work for
According to google (here):
As of November 19, 2013, all applications requesting v2 are served a special, wrapped version of the v3 API instead. We expect this wrapped version of the API to work for most simple maps, but we strongly encourage you to migrate to the v3 API immediately.

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.

Do I really need the Google Maps API key?

I am planning to release a commercial website (I have ads there and a shop) which is freely available for everybody. I want to add a google map to show some points of interest. The question is: Do I need the google api key for that or can I just use the iframe code that google gives me? Theoretically that would work, too.
I searched google, but could not find a clear answer...
Thanks :-)
v2 of the Google Maps API is deprecated, so you should ideally use v3.
v3 does not need an API key as mentioned in the documentation.
Since v3 is the official version now, I assume the links given in google maps are for the version. You can always just try and see if embedding the iframe works for you. Though as noted, you can't really customize the map, so you should use the API. It's very simple to set up a basic map (read the tutorial).
You don't need the Google Maps API key as long as you don't plan to include any special or customized maps in your website.
Using the iframe version is fine for basic Maps integration.
The API Key is free anyway, so there is no problem in obtaining one. You should also be free to use the iframe as well, as long as your site is publicly available to everyone without a payed login or anything like that.
As long as you meet Google Maps TOS, you can use both. If you don't meet those TOS, don't use any of it.
A Google Maps API key is required for v2 of the API, not for v3 as far as I know,
and neither for requests to Static Maps API v2.