Updating and Synchronizing multiple GPS Geopoints in android application - android

I have an Android Project that helps a taxi driver to get the location of the passengers who request a taxi and place them on a map , the project have two parts(seperate Project connected via a webservice) ,the passenger part which reads the GPS coordinates of the passenger and update it every 30 second or each 200 meter and sends the update to a web service.
The second part is the driver part which reads the GPS of the driver sends it to the web service and then display only the usres who are only on the range on the map
I have a problem that i don't know how to get the GPS coordinates from the two parts to the webservice exactly at the same time to set only an accurate points on the map .

you see example in system? alway loop cursor GPS coordinates , Util fill require ,Again next loop... i'm form china , my english so bad.

you can use two database tables to store locations sent by passengers and taxi drivers on your web server and store location(longitude and latitude) sent by passengers and taxi drivers. when taxi driver send their location to web server, you can query passengers table and find passengers who are near to location sent by taxi driver. then you can update map of taxi drivers to show passenger locations.

If you want to syncronize both positions, there is a "trick":
Just add the timestamp to your location:
location = (timeUTC, latitude, longitude)
Use position with same or small time difference for display / syncronizing.
transfer time as 8 bytes long value representing UTC time.

Related

How to Find each & every room's latitude and longitude inside Organization/Office in android

I am working on location based android application using Location Manager & Geo Fencing. Below are the scenario/Example for my implementation.
In our Home/Organization we have total no of 10 Rooms. When a user enter into different Rooms need to notify the Admin User about user changing the Room. The same is achieved by using android Geo-Fencing .
As mentioned in Google Geofencing as ,
"For getting best results from your geofences is to set a minimum radius of 100 meters" for single Geo-Fencing.
In our scenario inside the organization , a room to another room distance may be below 1 meter as well. Here I have some questions regarding Geo-Fencing as ,
How can we use Geo-Fencing in each room.?
The Lat/Long values are differeed in last 2/3 decimal digit values in every room. So how can we get every rooms accurate lat/lang?
How can we use multiple Geo-Fencing (10 rooms) inside the organization within one meter distance because of the Android Geo-Fencing min required radius of 100 meters for best result as mentioned in above link?
Note: Inside room GPS is not working . So we have used the Network provider. We can't get accurate location(Lat/Long) values in Network Provider.
So could you please provide the roadmap or solution for achieve the above.
Thanks in Advance.
The only relible indoor locationing are iBeacons or similar devices. That are low energy blue tooth devices delivering an beacon id, and the estimated distance to that beacon.
You can install one in each room.

How to send latitude and longitude to webservice in android without internet?

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.

Why Android GPS is not shown location inside building?

I created an application using Android GPS. This application shows user's current location name, latitude and longitude, GPS accuracy in Android mobile. I have tested this application in my android device. It was run in my mobile perfectly. But I can not get location name, latitude, longitude and accuracy when I was in Home or building. How do I create Toast text when I am not getting GPS coverage?
Thanks.
GPS works by connecting to four or more satellites and then triangulating your location by measuring the time it takes for the signal from various satellites to reach you, in a nutshell.
Due to this, you must have a clear view of the sky (sometimes even clouds can interfere), and GPS is unreliable and usually not working inside buildings and in underground locations.
Try using a different form of location tracking like the cell network for tracking the users inside buildings.

How to ge the nearby locations from my GPS coordinates?

i got the location from the android GPS and it seems like it is giving me this format
DD.dddddd
which i think is called the decimal format?
now i have Latitude and Longitude. i want to find all the nearby locations that are 200 Meters away.
how can i Calculate this so i can query the SQL Server database for any location that is close to me by 200 Meters?
thanks
You might want to give a look at this presentation, as shown on this previous SO post.

how to start Android Service/activity/dialog based on GPS Location and other events

how to start an android service/activity/dialog based on
1- user inserts new SIM card
2- based on GPS location stored in SQLite database
regards
1 - Here is the answer Event when sim card is changed
2 - You can listen location changes (LocationListener), get coordinates and check if they are in your db.

Categories

Resources