我们如何运行专门针对诺基亚 X 的 Android 应用中嵌入的 Here Maps?我们希望应用程序路由到我们将从当前位置定义的位置。
在 Google map 中,我们按如下方式进行操作。
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");
谢谢
最佳答案
HERE map 还支持 google.navigation 和地理方案。如果你想导航到某个地方,你可以使用 google.navigation 方案:
adb shell am start -a android.intent.action.VIEW -d google.navigation:q=Vuores
如果您只想在 map 上显示位置,请使用地理方案
adb shell am start -a android.intent.action.VIEW -d geo:61.437424,23.81297
关于here-api - 嵌入诺基亚 X 应用程序中的 Run Here Maps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22803187/