Help Center

Local Navigation

Object: Geolocation

Availability

BlackBerry® Device Software version 6.0 or later

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

clearWatch()

Stops the Geolocation.watchPosition() method from monitoring the device position.

HTML 5

6.0 or later

getCurrentPosition()

Attempts to asynchronously obtain the current location of the device.

HTML 5

6.0 or later

watchPosition()

Monitors the position of the device and calls the given callback function every time the position changes.

HTML 5

6.0 or later

Next topic: Object: Position
Previous topic: Coordinates properties

Was this information helpful? Send us your comments.