What is the alternative to deprecated Google Maps Geofences - google-maps

Since Google Maps Geofences is deprecated, what could be the other alternative to mark the geofences on a google map and check if coordinates are inside or outside of fence?

Google Maps Geofence is now only available on Android implementations. If you want to, you can checkout the documentation on how you can implement it using Android.
Otherwise, I found this Google Maps Javascript implementation on github which uses polygons that acts like geofences. Maybe you can use this as a guide in building your application.

Related

Can I generate URLs to point to Google Maps on all platforms and perform some actions

Regardless of the platform I would like to launch Google Maps and optionally perform some actions like showing location, route etc
Google provides Google Maps URLs which allows you to do just that. You can build a universal, cross-platform URL to launch Google Maps and perform searches, get directions and navigation, and display map views and panoramic images. The URL syntax is the same regardless of the platform in use.
You don't need a Google API key to use Google Maps URLs.
Google Map URLs
Recently, in May 2017, Google launched the new Google Maps URLs API. You can read about this API in the official documentation
https://developers.google.com/maps/documentation/urls/guide
This API is intended to provide universal, cross-platform Google Maps URLs. So you can use it with websites, mobile apps, etc.
Search, directions, display map and display street view panorama modes are available in this API.
I hope this helps!

Geofencing and offline maps in Android

It's amazing how easy it is possible to use geofencing with Google Maps API. However for that you have to be "connected" and use online maps. However I can not find how to use geofencing functionality for offline maps and what, if any, offline map provider supports it on Android. Would be thankful for any help here.
Well, I ended up with some hybrid solution. I used MapBox and Open Street Maps for offline map functionality together with Google Play services that allowed me to add geofencing functionality. Somehow I was thinking that geofencing requires to use Google Maps and that was obviously not correct.

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.

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

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.

Google static maps API page mentions that static maps to be used only in browser

In the Google static maps API description (http://code.google.com/apis/maps/documentation/staticmaps/), I found the following statement : (present in the "Overview" section)
"Note that static maps may only be displayed within browser content; use of static maps outside of the browser is not allowed."
I need some help in deciphering the above statement.
Does this mean that the Google static maps has to be used inside a browser and cannot be used in context of a application doing http requests?
Thanks in advance for the help.
Interesting question.
This section from the "Google Maps API Family" FAQ says:
Can I use Google Maps in my non-Web application?
Yes, the Google Maps APIs can now be used in Desktop applications, provided that they adhere to the other restrictions of the Terms of Service. Note that in order for a desktop application to be deemed "publicly accessible", there must be a publicly accessible webpage from which it can be downloaded. See Section 7.1c of the Terms of Service for more information.
The FAQ also explicitly includes the Static Maps API as part of the set of "Google Maps APIs" mentioned above:
What are the Google Maps APIs?
The Google Maps APIs give developers several ways of embedding Google Maps into web pages, and allows for either simple use or extensive customization. There are now several API offerings: Google Maps Javascript API, Google Maps API for Flash, Google Static Maps API. In addition, we also offer the Mapplets API to enable the creation of mini-applications that run inside Google Maps. Depending on your needs, you may find yourself using one or a combination of these APIs.
The problem is that Section 10.8 of the Terms of Use is still saying:
10 - Except as explicitly permitted in Section 7 or the Maps APIs Documentation, you must not (nor may you permit anyone else to):
...
10.8 - use the Static Maps API other than in an implementation in a web browser;
It seems that using the Static Maps in a non-Web application is explicitly permitted in the Maps APIs Documentation, but I wonder if Section 10.8 takes precedence.
I will try to seek further information about this issue, and will update this answer accordingly.
Related links:
Google Maps API Group: J2SE Desktop App Options
Google Maps API Group: Static Maps and Mobile Applications