I'm writing an app that needs to determine whether a user falls within one of several defined zones (based on gps location).
The Google maps javascript API has an easy to use function containsLocation(). However I want to be able to do this from an app on android, not a web-based service. Does anyone know if such a call exists in the android version of maps? Any pointers will be helpful!
A bit late, but here's the answer: com.google.maps.android.PolyUtil.containsLocation() from Google Maps Android API utility library.
You can use the Geofencing feature for this purpose. The API's for that are a part of Google Play Services library and hence you can start using it by importing it into your app project.
It even gives the notification if a particular user has entered or exited a specific geofencing location in order for a developer to monitor the number of mobile devices entered in the zone he defined. The implementation is pretty simple, I am pasting some links that may guide you further.
This is Google's official documentation about Geofencing:
http://developer.android.com/training/location/geofencing.html
This link actually implements an app for geofencing.
And this is another link if you want to use a third party plugin in order to get geofencing in your app.
Hope this would help!!!
Related
So, I think StackOverflow is the best place for asking this question.
I have a personal project in my Academy, I want to make an android app that can use for tracking our track when we are on the mountain.
This app will run offline and use GPS because the mountain signal is mostly weak. So, how to get the API OSM or OpenTilesMaps? I hope u can give me the reference for that. It's very helping me
I've searched some option for Mapping there are Google Maps, OpenStreetMap, and OpenTilesMaps.
I don't want to use Google Maps API because it's not free now.
So i choose OpenStreetMap or OpenTilesMaps
For offline apps, try following web app to create OSM tile packages
https://apl.esri.com/jg/OSMVectorTileExport/index.html
or install QGIS and follow below link. https://www.qgistutorials.com/en/docs/downloading_osm_data.html
How do I get the amount of steps the user has taken outside of an android application? Preferably using the google fit api to get the steps.
All i know is that the steps would have to be fetched in a Service or a BroadcastReceiver, but i don't know how. Does anyone know of some documentation or code that could help?
If you know a way to accomplish this without google fit that would work to.
I don't think you can take out Android apps out of the equation because Google Fit API is part of Goolge Play Services which is found on Android devices. So to work with Google Fit, you need to develop apps for Android phones. This is found in the Get Started guide of the Google Fit API.
To know about counting steps, check this documentation and a related SO post Android 4.4 Step Detector and Counter talking about counting steps using sensor of the android device (w/o Google Fit).
Anyone has a tutorial of making LBS applications like this? I want to make an application to determine the trajectory of the city's public transport me, but I did not find his examples everywhere, if you have please help me to develop it, thank you
It is a concept design of my application layout
To develop an android app which uses Google API's would be a combination of Google Maps API, Location Api, Direction API and also Places API(if you want to fetch the details of your source and destination). If you are developing this app for a special transit system in your city than you would specifically need their own set of API to populate your app data.
But if you want to develop something with free open source Google API you can first make use of the Google Play Services by first referring into your app project and then getting the API key, enabling the direction api "ON" in your developer console and writing code.
Please refer to this tutorial in order to get a better insight of the transit system app you want to develop. You can customize you app UI accordingly once you have the data coming in.
Here are the bunch of links from Google's official documentation regarding implementation of all API's.
https://developers.google.com/maps/documentation/android/
https://developers.google.com/maps/documentation/directions/
https://developers.google.com/places/documentation/
Hope this would help!!
I want to use google map coordinate in my android application.
http://www.google.com/intl/en/enterprise/mapsearth/products/coordinate.html?utm_source=google&utm_medium=cpc&utm_campaign=NA-LCS-2013-Geo-Products-MapsCoordinate-HouseAds&utm_term=%2Bgoogle%20%2Bcoordinate&utm_content=SearchAd&gclid=COy759vU2LsCFVMdtAodNGYAdg
I found this example on google play: https://play.google.com/store/apps/details?id=com.google.android.apps.geo.enterprise.flak
I searched on internet but didn't find documentation about how to implement google coordinate in my anndoid app.
Did any one used this before? If yes can you please put links of tutorial or links of samples?
Try this link, to the Google Maps Coordinate API Client Library for Java.
Otherwise, if you want to start from scratch, it's a RESTful api. There are a number of clients and libraries that you could use, including Volley. Also, here is a tutorial for making remote calls.
You can find everything you need here.
I have done it following this official tutorial recently. The version 2 of Google Maps Android API is different from version 1 in many points.
I currently am planning a small, but useful, addition to Google Maps for Android. I was wondering if I could create a .apk file that, when installed, adds a feature to the stock Google Maps for Android. The only thing I have found is Google Add-on API, although I don't think this is what I want.
If I use the above add-on API, I would be able to create a stand-alone application which fully implements Google Maps API... right? Please give me some clarity here, and let me know if I'm missing something.
The Google Add-on API is a set of classes that allow you to show google maps inside your application. Most apps use this for simply showing a map with some sort of marker on it.
The out of the box functionality is fairly limited and not nearly as feature rich as the google maps application. With enough time and effort you could possibly build a replacement for google maps but it's not as simple as just adding on functionality.
See here for a guide on how to get started using the APIs.
It now is possible to create plugins for google maps or any other app provided you have root access for your android device. once you have the root access, you can use the Xposed framework created by one of the XDA recognised developer rovo89
Please note that this will be only available for the rooted devices that have this framework installed. Again this is an indirect way to enhance any application deployed on your device provided you have an idea of which methods you need to hook into. in the same thread mentioned there is also a link to toutorial which explains how to use the xposed framework to modify and create your own mods.
For non rooted devices, unfortunately, there is no way to implement this functionality.