
For RIM and BlackBerry partner use only. Beta documentation. Content and software are subject to
change.
3
Displaying location information on a
BlackBerry device
Displaying location information in BlackBerry Maps
The BlackBerry® Maps uses a location document to display location information on a map, such as locations and
routes. A location document is a
String that contains a set of XML elements with attributes that specify
information about a location or route. You can include information about ten locations in one location document.
Create a location document to display location information
> Perform one of the following actions:
XML elements in a location document
The <lbs> element
Displaying location information in BlackBerry Maps
Open BlackBerry Maps from your application
Open BlackBerry Maps from the browser
Clearing data from the map that BlackBerry Maps displays
Displaying location information in your application
Task Steps
Use required elements only. > Create a string using the following format:
“<lbs>
<location y='
latitude
' x='
longitude
' label='
Location_Label
'
description='
Description
'/>
<location y='
latitude
' x='
longitude
' label='
Location_Label
'
description='
Description
'/>
<location y='
latitude
' x='
longitude
' label='
Location_Label
'
description='
Description
'/>
....</lbs>”
Use required and optional
elements.
> Create a string using the following format:
“<lbs>
<location y='
latitude
' x='
longitude
' label='
Location_Label
'
description='
Description
' zoom='
Zoom
' address='
address
' city='
city
'
region='
region
' country='
country
' postalCode='
postal_code
' phone='
phone
'
fax='
fax
' url='
url
' email='
email
' categories='
categories
' rating='
rating
'/>
</lbs>”
Comentarios a estos manuales