Attribute
Type
Description
Required
BlackBerry Java
Development
Environment version
label
String
a label that is displayed
beside a location on a
map
yes
4.2.0 or later
description
String
description information
for a location
yes
4.2.0 or later
address
String
address
no
4.2.1 or later
city
String
city
no
4.2.1 or later
region
String
province or state
no
4.2.1 or later
country
String
country
no
4.2.1 or later
postalCode
String
postal code
no
4.2.1 or later
phone
String
phone number
no
4.2.1 or later
fax
String
fax number
no
4.2.1 or later
url
String
URL
no
4.2.1 or later
String
email address
no
4.2.1 or later
categories
String
category
no
4.2.1 or later
rating
String
rating information,
between 0 and 5
no
4.2.1 or later
Create a location document to display location information
1.
Create a
String
using required elements, or required and optional elements.
String document = “<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>”;
2.
Invoke
invokeApplication()
using the
String
as one of the parameters.
Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments
( MapsArguments.ARG_LOCATION_DOCUMENT, document));
Development Guide
Displaying location information on a BlackBerry device
11