Object: Geolocation
The Geolocation object is a child of the Navigator object. It is used to acquire the location information associated with the hosting device. The location information is acquired by applying a user-agent specific algorithm, creating a Position object, and populating that object with appropriate data accordingly.
The user must provide consent before the BlackBerry device can retrieve the geographic coordinates.
Geolocation methods
|
Method name |
Description |
Support level |
Availability |
|---|---|---|---|
|
Stops the Geolocation.watchPosition() method from monitoring the device position. |
HTML 5 |
6.0 or later |
|
|
Attempts to asynchronously obtain the current location of the device. |
HTML 5 |
6.0 or later |
|
|
Monitors the position of the device and calls the given callback function every time the position changes. |
HTML 5 |
6.0 or later |