Can we use the API of google maps in Unity 3D? - google-maps

I want to know, can we use all the API's of Google Maps in Unity3D (not just a static map, I want to locate my position, add a lot of markers with window information, select itinerary from my position to a selected marker ...)
Have a good day and thanks ! :)

I think the answer is yes, you can use the Google maps API with Unity as long as you adhere to the licensing agreement for the Google maps API.
However, if you're asking if there is special support in Unity for the Google maps API then the answer is no. However, there is at least one third party asset that supports Google maps. You could probably use it or a different asset to get you started with integration.

Related

Is there any api to get 3D maps from google maps Api?

Can we get the 3D maps from the Google Maps API ?
i need to get the 3d model of any particular place just like the NYC 3d modedl.
Currently, the 3D Maps feature is not yet available from the Google Maps Platform - Maps JavaScript API.
But, we do have an existing feature request for this in our Google Issue Tracker. To express your interest and to subscribe you to its latest updates, I suggest that you star this entry: https://issuetracker.google.com/35821626
In the mean time, you may want to consider checking out the 45° Imagery and see if this will fit your use case. You could also find a code sample of this service here.

How do I open a tab of google maps in unity without buying an Asset?

I'm having trouble figuring out how do I open a tab of google maps or google maps app on my app within the unity, and can't afford to buy the Asset for facilitating, what do I do? is there any other site or application that I can use and be easier?
You would have to use AndroidJavaClass and AndroidJavaObject API to construct common map intents: https://developer.android.com/guide/components/intents-common.html#Maps
There are plenty examples out there how to use AndroidJavaClass and AndroidJavaObject e.g. how to create a share intent. These are very similar for maps.

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.

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.

Streets Missing using Google Maps API

Does google maps api use an older verison of their maps? When I embed a map using google maps api, a ton of streets are missing, especially in Israel.
Check this out (this map has lots of detail and streets)
http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=israel&sll=37.0625,-95.677068&sspn=41.496446,93.076172&ie=UTF8&hq=&hnear=Israel&z=8
Yet the embedded map hee has very little detail on Israel and relatively no streets.
Goto google maps api example page and find israel. (I couldn't post a link cause this is my first post)
Its a licensing issue. GISrael won't sell Google a universal licence to redistribute the map imagery to other people's domains.
My answer is this is probably a real or perceived security issue for Israel, which makes it an incredible headache for anyone outside of the country to produce a useful map with google map tools. (I've tried to do a map of Jerusalem, a walking tour, and found it nearly impossible to do.)