HERE 地图 Android:在避开特定区域的同时计算方向
HERE Maps Android: Calculate Directions While Avoiding Specific Areas
我正在为 Android 使用 Here Maps API 开展一个项目,其中包括计算避开特定区域(主要是交叉路口)的方向。我看到它可以在 Javascript here 中完成,所以我只是想知道它是否可以在 Android 中完成。查看文档中的 Route 和 Routeoptions 似乎没有任何结果。
谢谢。
是的,这可以在我们的 Android 高级 SDK 中完成。您可以在调用 calculateRoute
之前使用 addBannedArea
到 coreRouter
。查看 DynamicPenalty
class:
https://developer.here.com/documentation/android-premium/dev_guide/topics/routing.html
https://developer.here.com/documentation/android-premium/api_reference_java/index.html
我正在为 Android 使用 Here Maps API 开展一个项目,其中包括计算避开特定区域(主要是交叉路口)的方向。我看到它可以在 Javascript here 中完成,所以我只是想知道它是否可以在 Android 中完成。查看文档中的 Route 和 Routeoptions 似乎没有任何结果。
谢谢。
是的,这可以在我们的 Android 高级 SDK 中完成。您可以在调用 calculateRoute
之前使用 addBannedArea
到 coreRouter
。查看 DynamicPenalty
class:
https://developer.here.com/documentation/android-premium/dev_guide/topics/routing.html https://developer.here.com/documentation/android-premium/api_reference_java/index.html