The Geolocation object is used by scripts to programmatically determine the location information associated with the hosting device.

Only notes about the BlackBerry WebWorks implementation of the standard HTML5 Geolocation API are provided here. For a complete description, see the Geolocation API Specification on the w3 website.

The standard HTML5 version of the Geolocation API requires less overhead than the Cordova Geolocation API. You should use the Cordova version only if you are doing cross-platform development for platforms that do not have built-in geolocation support.

Learning Resources:

Maps Sample This sample demonstrates how to integrate mapping services into a BlackBerry WebWorks app for BlackBerry 10. This sample uses the geolocation API [BlackBerry on GitHub].


This object is part of standard HTML5. No special installation is required.

Permission Elements:

To use this API, you must declare the permission element below in your www/config.xml file.


Last modified: 2014-10-09

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus