I am creating an application in Android like OLA cab. I want to show the cab's location on Google Maps, for this I need to read data from the cab's GPS device. I know how to get current location of my device, but my problem is how to get the location of the other GPS device?
Each cab must update its current location to server periodically. When the user opens the apps the cabs locations must be retrieved from server and update it in google map.
For your requirement you have to make real time location update on both server and client side.
Related
How do you use a custom location source in google maps, to determine user Location. I have a rtk equipment which I connect to mobile app, and this gives me the user locations.
What I want is to show user location on the app, as they move. so how can I use Location layer in google maps with my readings from the rtk
How to show on google map when some one using my app & getting his/her current location, And i want show both location vice versa like Ola app example, user see different driver on his google map. Is i want to used Socket Connection?
On location changed, you can update user location on server and you have to fetch the location from server in continuous loop.
i am new to locations, i want to ask that how can i get user current or last known location using GPS. i am using GoogleAPIClient. I am using google Map in my application in which i want to get User location in MapActivity and show it on map.
Is it possible to setup smaller areas with Google Maps in your own app and send push messages to the users that have your app if they get inside this area in Google Maps?
Eg.
We have an app and have displays in some smaller stores around the country. The customer enters the store or is close to the store and has his/hers phone with our app. The user now gets a push message via. our app to remember to enter our competition.
I have worked with Beacons and done this before, but now my colleague has heard that this is possible with google maps.
Solution was called Geofencing.
Yup it is done by Geofencing .Geofencing combines awareness of the user's current location with awareness of the user's proximity to locations that may be of interest. To mark a location of interest, you specify its latitude and longitude. To adjust the proximity for the location, you add a radius. The latitude, longitude, and radius define a geofence, creating a circular area, or fence, around the location of interest.
for more reference visit...
https://developer.android.com/training/location/geofencing.html
I'm using the Google Play Services to get user's location and I can't find a way to get the status of the different location providers (network, gps).
I was looking for some equivalent of android.location.LocationListener's methods.
The point is, I have an activity with a map, it's supposed to display user's location, and if it's not available (because he didn't turn on his gps or whatever), the app prompts a Dialog to ask him to turn on.
Any idea ? :)