A message should display when I'm entering a specific address except address number for instance "Kristian Augusts gate
0164 Oslo".
When I walk to the address and suddenly my gps phone discover that I am located at "Kristian Augusts gate 0164 Oslo" then message should display
How do you create such a functionality? Any advice or tutorial?
Thank you!
First, you need to use a GPS service. You can either do it using Android API or Google Play Services API. The latter is a little more complicated and resource-intensive, but will provide more reliable location methods and callbacks.
Get location using Google Play Services
Then, when you already have the longitude and latitude you can easily get the address associated with that coordinates.
Get address from coordinates
Then you simply check if the current address is the same as the address intended to trigger the message and display it, using an AlertDialog, Toast, system notification or whichever method you need.
I am working on android application and i need to get the user's longitude and latitude just by GPS not the network provider. I am using NMEA for this purpose.I am receiving few parameters correct as they should be but the others are not. I am receiving in response following sentences.
$GPGGA,,,,,,0,,,,,,,,*66
$GPRMC,,V,,,,,,,,,,N*53
$GPGSV,3,1,09,03,47,205,,07,18,267,,08,09,157,,09,31,316,*75
$GPVTG,,T,,M,,N,,K,N*2C
I can get accuracy and satellites in use from GPGGA from the GPGGA sentence but GPRMC and GPGGA have nothing. How can I get longitude and latitude? any help would be appreciated, thanks in anticipation.
Stand up and move outside of your office. You don't have receivement inside a building. Your NMEA messages show that the GPS chip is running, that GPRMC are enabled but it is not possible to get a valid coodinate. "V" in RMC stands for invalid.
I am currently able to get the city name in an Android application using GPS or network provider.
I tried with LocationManager, but if GPS is off the location manager and location is null. To improve the battery performance I don't want to turn on the GPS.
Is there any way without turning on the GPS able to get the city name in an Android application? Or if GPS is off why is location manager returning null? How can I solve this?
Querying the following URL will give the current IP address and location in JSON:
http://ip-api.com/json
You can then parse that to extract the values you want.
I have an idea of making an app in that truck drivers are there with GPS,SO they will get latitude longitude without internet,there will be an admin panel which can track the truck driver's location and location history,So My question is that the truck drivers will only having a GPS enabled Android device (WITHOUT INTERNET),SO how can the admin will track their location? Please suggest me for it .
I suppose you could try SMS messages, though, it might become rather expensive if the re-fresh rate for the location is high.
In simplest solution you would have a mobile device (you need to find one which incoming SMS you can fetch to the PC, might require some internet searching time) with normal number for receiving the SMS messages, or you could see whether you could get Operator service numbers (see whether using free-to-send number would be cheaper) and then get the data from the operator.
What i have: currently my app only receives latitude and longitude based on user input (user inputs the Latitude and Longitude of the preferred location)
What i want: my app to receive the name of location as user input..
How can i go about doing it?
Must i use database? Any preferred links(for tutorial)?
Thank you in advance.
reverse Geo-Coding is very good, but you can only use this feature with Wifi connection. If your device is connect via Mobile Data connection (3G,EDGE), this service will not work.