
For RIM and BlackBerry partner use only. Beta documentation. Content and software are subject to change.
18
GPS and BlackBerry Maps Development Guide
The <lbs> and </lbs> elements encapsulate the information in a location document. The opening and closing <lbs>
elements contain all other location document elements. The <lbs> element has the following optional attributes:
The <getRoute> element
The <getRoute> and </getRoute> elements contain route information. To display route information in a map, you
must place two <location> elements within the opening and closing <getRoute> elements. The first <location>
element represents the starting point of a route while the second <location> element represents the ending point
of a route. You can only use the x and y attributes in a <location> element that is nested within a <getRoute>
element.
The <location> element
The <location> element contains information for a specific location and has the following required and optional
attributes:
Open BlackBerry Maps from your application
> Your application must import the Invoke and the MapsArguments classes.
Attribute Type Description Required
BlackBerry Java Development
Environment version
id
String the id of a location document - cannot be NONE,
,DOCS, LOCATIONS, ROUTES, or ALL
no 4.5.0 or later
clear String NONE | DOCS | LOCATIONS | ROUTES | ALL |
String
,
String
, ....,
String
}
no 4.5.0 or later
Attribute Type Description Required
BlackBerry Java Development
Environment version
y integer latitude in decimal degrees x 100,000 yes 4.2.0 or later
x integer longitude in decimal degrees x 100,000 yes 4.2.0 or later
zoom integer zoom level from 0 to MAX_ZOOM yes 4.2.0 or later
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
email string email address no 4.2.1 or later
categories string category no 4.2.1 or later
rating double rating information, between 0 and 5 no 4.2.1 or later
Kommentare zu diesen Handbüchern