如何通过黑莓应用程序获取在谷歌地图应用程序中绘制的路线图或多点
我正在尝试在我的应用程序中使用谷歌地图,我想知道如何通过将所需参数从我的应用程序传递到谷歌地图来获取路线图或在谷歌地图应用程序中绘制的多个点。对其的见解将很有用。
我尝试使用谷歌地图的一些代码,它适用于单个位置,但对于多个位置,我没有任何信息在哪里搜索{
URLEncodedPostData uepd = new URLEncodedPostData(null, false);
uepd.append("action", "LOCN");
uepd.append("a", "@latlon:" + l.getLatitude() + "," + l.getLongitude());
uepd.append("title", l.getName());
uepd.append("zoom", "10");
uepd.append("description", l.getDescription());
String[] args = { "http://gmm/x?" + uepd.toString() };
//String[] args = { "http://maps.google.com/maps?q=12.970214,,77.56029"};
ApplicationDescriptor ad = CodeModuleManager.getApplicationDescriptors(mh)[0];
ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args);
try {
ApplicationManager.getApplicationManager().runApplication(ad2, true);`
如果我想要路线信息,我不知道需要添加哪些参数,关于它的任何信息都会有用
问候
Rakesh Shankar.P
I am trying to use google maps for my application,I want to know how to get the route map or multiple points plotted in google map app by passing requiring parameters from my app to the Google maps.Insights for it ,will be useful.
I tried using some codes for google map ,and it works good for single location,but for multiple locations,I dont have any info where to search{
URLEncodedPostData uepd = new URLEncodedPostData(null, false);
uepd.append("action", "LOCN");
uepd.append("a", "@latlon:" + l.getLatitude() + "," + l.getLongitude());
uepd.append("title", l.getName());
uepd.append("zoom", "10");
uepd.append("description", l.getDescription());
String[] args = { "http://gmm/x?" + uepd.toString() };
//String[] args = { "http://maps.google.com/maps?q=12.970214,,77.56029"};
ApplicationDescriptor ad = CodeModuleManager.getApplicationDescriptors(mh)[0];
ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args);
try {
ApplicationManager.getApplicationManager().runApplication(ad2, true);`
Incase if i want the route info,i dont know what are parameters that needs to be added,AnyInfo on it will be useful
Regards
Rakesh Shankar.P
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Google 地图中不可能绘制多个点。如果您想使用多个点绘制,那么最好使用 MapQuest API。
您可以从以下位置找到它:
http://developer.mapquest.com/。
In the Google maps is not possible to plot multiple points.If you want to use multiple points plotting then its better to you MapQuest API.
You can find it from:
http://developer.mapquest.com/.
nutiteq.com 有一个为 RIM 开发的 SDK,您可以绘制并创建路线图。最好的部分是,它也适用于印度。感谢您的帮助
There is a developed SDK for RIM in nutiteq.com and you can plot as well as create route map.Best part is ,it works in india too.Thanks for your help