Trace gps coordinates from one device and show on another

1

I'm learning how to use Intel XDK to develop for mobile. And he wanted to know how to track the position of one device and show it on the screen in another, just like Easy Taxi does. Can someone help with this ?! vlw galera!

    
asked by anonymous 04.12.2014 / 06:04

1 answer

1

Well, this is a question of architecture of the application as a whole, so let's imagine that we have two sets A and B.

Checking the position of an A device is available through the cordova / phonegap methods:

  

navigator.geolocation.getCurrentPosition or navigator.geolocation.watchPosition

The first takes the current position and the second is monitoring.

Once the geolocation of the device is obtained, it can send this information to a Web application through a service (this depends on its architecture), meanwhile the device B is monitoring this service to receive the location of device A and show on the screen on a map or whatever you prefer.

    
23.03.2015 / 14:31