Attribute
Type
Description
Required
BlackBerry Java
Development
Environment version
DOCS: clears location or route
information from all location
documents with a id attribute set to a
value
LOCATIONS: clears location
information from the map
ALL: clears location and route
information from the map
XML element: <getRoute>
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.
XML element: <location>
The
<location>
element contains information for a specific location and has the following required and optional attributes
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
Development Guide
Displaying location information on a BlackBerry device
10