Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Real time sharing of GPS location [closed]

I'm pretty new in the android world. I am wondering how can I get the position of my friends and display it on a map. More precisely, I don't know how to share the position of my friends and I. Maybe have to use a server or something like that ?

Is it hard to code ?

Thx,

Arnaud

like image 562
ArnaudT Avatar asked Nov 11 '13 06:11

ArnaudT


People also ask

Does location sharing work when GPS is off?

Location Sharing availabilityLocation Sharing works even when Location History is turned off.

Can someone track my phone if my location is off?

The answer is yes, it's possible to track mobile phones even if location services are turned off. Turning off the location service on your phone can help conceal your location. This is important if you don't want third parties knowing where you are or being able to track your movement.

How do I turn off real time location?

You can control what location information your phone can use. Open your phone's Settings app. Under "Personal," tap Location access. At the top of the screen, turn Access to my location on or off.

How do I share my GPS location in real time?

Whenever you want to let someone know where you are, just open the side menu or tap the blue dot that represents where you are. Tap “Share location” and then select who to share with and how long to share—and you're done!


2 Answers

You can look at existing open source solutions.

Here is a server side source code: https://github.com/tananaev/traccar/

And here is Android app: https://github.com/tananaev/traccar-client-android

Communication is done over TCP connection.

  • After establishing connection client sends identification message:

$PGID,123456789012345*0F\r\n where 123456789012345 is a unique device identifier, in this case IMEI

  • Then client sends location reports with selected interval in standard NMEA RMC format:

$GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A

like image 86
Anton Tananaev Avatar answered Oct 17 '22 06:10

Anton Tananaev


Step-1 Create android app which will share required details like position and name etc and will request to the server for required information

Step-2 Create a server which will store the details sent by the user and sent necessary information to the appropriate client

Approach

When your friend will come online the app should send(installed in your friends device) the detail to the server whenever you want the information your app should request to the server for necessary information

like image 1
Sunil Kumar Sahoo Avatar answered Oct 17 '22 05:10

Sunil Kumar Sahoo