如何找到黑莓两地之间的路径? [英] How to find the route between two places in BlackBerry?

查看:176
本文介绍了如何找到黑莓两地之间的路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何找到黑莓两地间的路由信息​​?

How do I find the route information between two places in BlackBerry?

我使用MapField展现在我的应用程序映射。

I'm using MapField to show the map in my application.

推荐答案

据我了解,你需要获得多个地点之间的路径长度。结果
这是不可能的MapField,你只能自己设置这条路线。

As I understood, you need to get a path length between several locations.
It's not possible in MapField, you can only set that route by yourself.

您可以随时使用MapField在您简单的功能应用,如present的位置,并使用黑莓地图应用程序,增强喜欢选择的地点和路线指引presentation用户的东西。

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.

要调用BB地图路线方向使用code:

To invoke BB Maps for route direction use code:

Invoke.invokeApplication(Invoke.APP_TYPE_MAPS,
                        new MapsArguments(
                        MapsArguments.ARG_LOCATION_DOCUMENT,document));

通过形成像文档:

<location-document>
     <GetRoute>
        <location lon='-8030000' lat='4326000' label='Kitchener, ON' description='Kitchener, Ontario, Canada' />
        <location lon='-7569792' lat='4542349' label='Ottawa, ON' description='Ottawa, Ontario, Canada' />
     </GetRoute>
</location-document>

结果会是怎样结果
替换文本 替换文本

Result will be like

现在,在黑莓地图,您可以注册您的应用程序菜单项,并使用图形页面与选定的位置开始或更新您的应用程序。结果
见<一href=\"http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800703/How_To_-_Add_an_ApplicationMenuItem_to_BlackBerry_Map.html?nodeid=1371852&vernum=0\"相对=nofollow>如何 - 添加ApplicationMenuItem黑莓地图

Now, in BlackBerry Maps you can register your App menu item and start or update your App with selected location using MapView.
See How To - Add an ApplicationMenuItem to BlackBerry Maps

更新

请参阅J2ME/Android/BlackBerry - 行车路线,两个地点之间的路线

这篇关于如何找到黑莓两地之间的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆