![](/img/trans.png)
[英]How to get the route map or multpile points plotted in google map app via Blackberry App
[英]google map with route in blackberry
如何在黑莓手机中使用带有路线的谷歌地图。 我尝试了带路线的黑莓地图,但是在我的设备(Storm 2)中无法显示地图。 我不知道是什么问题?
在黑莓应用程序中,任何人都想在Google地图上肆虐,而不是让我知道。
我尝试使用此http://maps.google.com/maps?saddr=23.4444,72.44445&daddr=23.55555,72.55555
并在BB浏览器中打开此网址,但无法将其重定向到地图站点。
如何在BB应用程序中使用路线处理google map或blackberry map?
我已经通过Google Map Installed App在Blackberry中使用路由实现了Google Map。
public void invokeGoogleMap() {
int mh = CodeModuleManager.getModuleHandle("GoogleMaps");
if (mh == 0)
{
try
{
throw new ApplicationManagerException("GoogleMaps isn't installed");
}
catch (ApplicationManagerException e)
{
System.out.println(e.getMessage());
}
UiApplication.getUiApplication().invokeLater(new Runnable() {
public void run() {
stubDialog.inform("GoogleMaps isn't installed on your device.download it from m.google.com/maps.");
}
});
}
else
{
URLEncodedPostData uepd = new URLEncodedPostData(null, false);
uepd.append("action", "ROUT"); // or LOCN
uepd.append("start", "23.039568,72.566005");
uepd.append("end", "23.02,73.07");
String[] args = { "http://gmm/x?" + uepd.toString() };
ApplicationDescriptor ad = CodeModuleManager.getApplicationDescriptors(mh)[0];
ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args);
try
{
ApplicationManager.getApplicationManager().runApplication(ad2, true);
}
catch (ApplicationManagerException e)
{
System.out.println(e.getMessage());
}
}
}
Blackberry浏览器无法完全使用Java脚本在浏览器字段中显示路线信息,而必须使用Blackberry地图。 为此,以下链接将为您提供帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.