谷歌地图与黑莓路线

发布于 2024-12-07 01:57:21 字数 283 浏览 1 评论 0原文

如何在黑莓手机中使用谷歌地图和路线。我尝试了带有路线的黑莓地图,但在我的设备(Storm 2)中无法显示地图。我不知道是什么问题?

任何人对黑莓应用程序中的谷歌地图有任何想法都可以告诉我。

我尝试了这个http://maps.google.com/maps?saddr=23.4444,72.44445&daddr=23.55555,72.55555 并在BB浏览器中打开此网址,但它无法重定向到地图站点。

我们如何在 BB 应用程序中处理带有路线的谷歌地图或黑莓地图?

how to use google map with route in blackberry . i tried blackberry map with route but in my device (Storm 2) cant display map . i dont know what is the issue ?

any one have idea ragarding google map in blackberry application than let me know.

i tried this http://maps.google.com/maps?saddr=23.4444,72.44445&daddr=23.55555,72.55555
and open this url in BB browser but it cant redirect to map site .

how can we handle google map or blackberry map with route in BB application ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

千と千尋 2024-12-14 01:57:21

我已经通过谷歌地图安装的应用程序在黑莓上实现了谷歌地图和路线。

   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());
         }

     }
  } 

i have implemented Google Map with route in Blackberry via Google Map Installed App.

   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());
         }

     }
  } 
十年不长 2024-12-14 01:57:21

黑莓浏览器不能完全支持 java 脚本在浏览器字段中显示路线信息。相反,您必须使用黑莓地图。为此,以下链接将为您提供帮助。

如何在 BlackBerry 中查找两个地点之间的路线?< /a>

Blackberry browser is not fully functional for java script to display route info in browser field.Instead you have to use Blackberry maps. for this the following link will help you.

How to find the route between two places in BlackBerry?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文