Book Image

Phonegap Essentials

By : Ivan Turkovic
Book Image

Phonegap Essentials

By: Ivan Turkovic

Overview of this book

Table of Contents (15 chapters)

The Geolocation plugin


The Geolocation plugin provides information about the device's location, identified with latitude and longitude. Most of the time, the device gets this information from Global Positioning System (GPS) or via network signals such as GSM/CDMA cell IDs, Wi-Fi, or Bluetooth MAC addresses. It's worth mentioning that, in addition to GPS, many new devices also have support for its competitor: GLONASS. Two positioning systems add more precision to location positioning.

In most scenarios, this plugin provides very accurate results that might differ depending on your location, whether you are outside or inside.

This plugin provides one of the most valuable sources of information for the application to manage data with. It can provide a user with local information or give the ability to search for various content located in the vicinity of the user. Most modern devices (even the cheapest) that have the latest version of their operating system usually have an embedded GPS module...