2

我们如何运行嵌入在专门为诺基亚 X 的 Android 应用程序中的 Here Maps?我们希望应用程序路由到我们将从当前位置定义的位置。

在谷歌地图中,​​我们按如下方式进行。

Uri.parse("http://maps.google.com/maps?   saddr="+myLocation.latitude+","+myLocation.longitude+"&daddr="+latLng.longitude+","+latLng.latitude));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addCategory(Intent.CATEGORY_LAUNCHER );    
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");

谢谢

4

1 回答 1

3

HERE 地图还支持 google.navigation 和地理方案。如果你想导航到某个地方,你可以使用 google.navigation 方案:

adb shell am start -a android.intent.action.VIEW -d google.navigation:q=Vuores

如果您只想在地图上显示位置,请使用地理方案

adb shell am start -a android.intent.action.VIEW -d geo:61.437424,23.81297
于 2014-04-02T12:05:48.313 回答