Help Center
Local Navigation
- GPS location information
-
BlackBerry Maps location information
- Opening BlackBerry Maps
- Opening BlackBerry Maps from an application
-
Displaying location information on a BlackBerry device
- Displaying location information in BlackBerry Maps
- Open BlackBerry Maps to display the default map view
- Open BlackBerry Maps to display a location on a map
- Open BlackBerry Maps to display multiple locations on a map
- Open BlackBerry Maps to display a route between locations on a map
- Open BlackBerry Maps to display a custom map view
- Open BlackBerry Maps to display the location for an address in the contact list
- Start a BlackBerry device application from BlackBerry Maps
- Displaying location information in a UI field
- Requesting location information for an address
- Open BlackBerry Maps from a browser
- Clearing data from the map
- Resources
- Glossary
- Provide feedback
- Legal notice
BlackBerry Manuals & Help
>
Documentation for Developers
>
Java Development Guides and API Reference
>
GPS and BlackBerry Maps - Development Guide - BlackBerry Java Development Environment - 4.7.0
Create a location document to display location information
- Import the net.rim.blackberry.api.invoke.Invoke class.
- 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>”;
- Invoke Invoke.invokeApplication() using the String
as one of the parameters.
Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments( MapsArguments.ARG_LOCATION_DOCUMENT, document));
Related concepts
Previous topic: XML element: <location>