Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As I understood, you need to get a path length between several locations.<br> It's not possible in MapField, you can only set that route by yourself. </p> <h2>Invoke BB Maps for route direction</h2> <p>You can always use MapField in you application for simple functionality, like present locations, and use BlackBerry Maps application for enhanced stuff like select locations and route directions presentation for user.</p> <p>To invoke BB Maps for route direction use code: </p> <pre><code>Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments( MapsArguments.ARG_LOCATION_DOCUMENT,document)); </code></pre> <p>With document formed like: </p> <pre><code>&lt;location-document&gt; &lt;GetRoute&gt; &lt;location lon='-8030000' lat='4326000' label='Kitchener, ON' description='Kitchener, Ontario, Canada' /&gt; &lt;location lon='-7569792' lat='4542349' label='Ottawa, ON' description='Ottawa, Ontario, Canada' /&gt; &lt;/GetRoute&gt; &lt;/location-document&gt; </code></pre> <p>Result will be like<br> <a href="http://www.blackberry.com/knowledgecentersupport/kmsupport/supportknowledgebase/images/DB-00599_3.jpg" rel="nofollow noreferrer">alt text http://www.blackberry.com/knowledgecentersupport/kmsupport/supportknowledgebase/images/DB-00599_3.jpg</a><a href="http://www.blackberry.com/knowledgecentersupport/kmsupport/supportknowledgebase/images/DB-00599_4.jpg" rel="nofollow noreferrer">alt text http://www.blackberry.com/knowledgecentersupport/kmsupport/supportknowledgebase/images/DB-00599_4.jpg</a></p> <p>Now, in BlackBerry Maps you can register your App menu item and start or update your App with selected location using MapView.<br> See <a href="http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800703/How_To_-_Add_an_ApplicationMenuItem_to_BlackBerry_Map.html?nodeid=1371852&amp;vernum=0" rel="nofollow noreferrer">How To - Add an ApplicationMenuItem to BlackBerry Maps</a></p> <p><strong>UPDATE</strong></p> <h2>Use the gmap navigation service for driving directions</h2> <p>See <a href="https://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations">J2ME/Android/BlackBerry - driving directions, route between two locations</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload