我构建了一个包含许多地址的应用程序。用户可以在 ListView 中选择地址。这应该自动向用户显示从用户当前位置到该地址的路线。
String uri = "geo:"+ selectedAddress.getLat+","+getLng();
StartActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(uri)));
我知道这只是显示指定坐标的位置。
我如何显示从用户当前位置到该位置的路线?
最佳答案
How would i go about showing the directions to the location from the users current location?
正如@Frxstrem 所指出的,没有记录和支持的Intent
来提供指示。
关于java - 自动通过 Intent 进行指示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6237510/