Contents
1 Using location information in a BlackBerry device application .................................................................. 7
Getting and using GPS location information in a BlackBerry device application ...................................7
Using BlackBerry Maps location information in a BlackBerry device application ..................................7
2 Using GPS..............................................................................................................................................................9
Modes for getting GPS location information................................................................................................ 9
Specifying the source of GPS location information.....................................................................................9
Get location information from cell site towers ....................................................................................10
Get location information from GPS satellites using PDE...................................................................10
Get location information from GPS satellites and the GPS receiver on a BlackBerry device .......11
Get GPS location information.................................................................................................................12
Specifying a GPS receiver as the source for location information...........................................................14
BlackBerry smartphones with an internal GPS receiver.....................................................................14
BlackBerry smartphones with an internal GPS receiver and supporting Bluetooth GPS technolo-
gy through JSR 179...................................................................................................................................15
BlackBerry smartphones without an internal GPS receiver and supporting GPS technology
through JSR 179 ........................................................................................................................................15
3 Displaying location information on a BlackBerry device.............................................................................17
Displaying location information in BlackBerry Maps.................................................................................17
Create a location document to display location information ............................................................17
XML elements in a location document.................................................................................................. 17
Open BlackBerry Maps from your application ............................................................................................18
Open BlackBerry Maps to display the default map view....................................................................19
Open BlackBerry Maps to display a location on a map......................................................................19
Open BlackBerry Maps to display multiple locations on a map.......................................................20
Open BlackBerry Maps to display a route between locations on a map..........................................21
Open BlackBerry Maps to display a custom map view...................................................................... 22
Open BlackBerry Maps to display the location for an address in the contact list ........................ 23
Open BlackBerry Maps from the browser ................................................................................................... 24
Clearing data from the map that BlackBerry Maps displays....................................................................24
Clear data specific to a location document with an id attribute......................................................25
Clear data specific to all location documents with an id attribute.................................................. 25
Commenti su questo manuale