Im developing an app that brings the user a quick list of "info" items but i want to set an options so that he receives this items as notifications when he is leaving home or work.
I noticed (using google now on my device) that they can tell where the user lives and works so that they can push you notifications whenever you leave or arrive at one of this places (a sort of if this then that).
Is there any way yo obtain the coordinates (lat and long) that Google Now (they come from google maps) uses for this?. I mean something like (GoogleMapsApi > GetFavorite Locations > Get Home Location > Get coordinates > use them in my app).
If there is, can you point me to an example, tutorial, or code that does this.
Thanks in Advance.
You can use a free sdk called Neura, which has a learning phase for detecting your significant places such as home, work, gym, grocery store, restaurants, etc.
Plus, and a big plus - it can notify your application when your user arrives/leaves specific place you define in advanced.
This suits your needs exactly, for this example, let's talk about home :
You can check out this project on git, doing exactly as i described, for :
Feel free to take these projects and do as you please with it.
For finding your user home address project, here's the outcome of the application:
You could detect Wifis and assign them to a place (Home/Work)
(I have never tried anything like this but this might help: http://developer.android.com/reference/android/net/wifi/WifiManager.html#startScan(), http://developer.android.com/reference/android/net/wifi/WifiManager.html#getScanResults())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With