LiveTracks (PHP)

Categories Tech

LiveTracks is a live tracking implementation using FollowMee and a simple PHP back-end and JavaScript front-end. Essentially, the PHP back-end calls the FollowMee API at regular intervals to get the latest location of the phone. If the location has not changed, it will ignore the update. If it has, it take the location and speed and put it into the database.

When loading the map, the database is queried for tracks and they are passed in to the Google Maps JavaScript API which displays them on a track. The JavaScript then creates an asynchronous process to continually update the map on the screen.