19. Geolocation
The Geolocation API allows an application to leverage the GPS capabilities of a mobile device and determine the device’s location on the surface of the earth. Using this API, either an application can manually check the device’s current position or it can create a location watch that will cause the application to be periodically notified of the device’s physical location.
To use this API, the device running the application must provide geolocation capabilities (by utilizing either a GPS radio and associated software or some alternate mechanism for determining the device’s location). While geolocation capabilities in smartphones are regularly enhanced in newer models, an application cannot guarantee that even though the device ...
Get PhoneGap Essentials: Building Cross-Platform Mobile Apps now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.