Skip to main content

Posts

Showing posts from October, 2013

Real time GPS Tracker on JUST HTML / JS and Google Maps to be run on a mobile phone

Most browsers in the latest smart phones have implemented the W3C Geo location: The Geolocation API defines a high-level interface to location information associated only with the device hosting the implementation, such as latitude and longitude. The API itself is agnostic of the underlying location information sources. Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs, as well as user input. No guarantee is given that the API returns the device's actual location. The API is designed to enable both "one-shot" position requests and repeated position updates, as well as the ability to explicitly query the cached positions. Using the Geolocation API to plot a point on Google Maps, will look something like this:     if ( navigator . geolocation ) { navigator . geolocation . getCurrentPosition