BlackBerry® smartphones with Global Positioning System (GPS) capabilities
The following methods and properties are available to developers to request GPS related information:
blackberry.location.refreshLocation() - Requests the BlackBerry location be updated.
blackberry.location.onLocationUpdate(var method) - Registers a callback method to be called when the location changes.
blackberry.location.setAidMode(var aidMode) - Sets the aid mode to be used: 0 = cellsite, 1 = assisted, 2 = autonomous
blackberry.location.GPSSupported - Boolean value whether GPS is supported on this BlackBerry.
blackberry.location.longitude - The current longitude.
blackberry.location.latitude - The current latitude.