获取街道上的航路点而不是此处地图中的原始位置?

Get the waypoint on the street instead of the original position in here maps?

我正在请求使用 android 高级 SDK 的路线。按预期工作,但我的 waypoints 请求可以远离街道,例如请求是在建筑物内的某个位置发出的。

如何在 android SDK 中获取映射的 waypoints? 剩下的我看到了一些东西api.

            waypoint": [
                {
                    "linkId": "-1200551084",
                    "mappedPosition": {
                        "latitude": 47.0243827,
                        "longitude": 15.48219
                    },
                    "originalPosition": {
                        "latitude": 47.0243825,
                        "longitude": 15.48219
                    },
                    "type": "stopOver",
                    "spot": 0.2363636,
                    "sideOfStreet": "neither",
                    "mappedRoadName": "",
                    "label": "",
                    "shapeIndex": 0
              }]

您可以使用路由对象来获取这些值。

使用 Route. getRouteWaypoints(), you can then get either the RouteWaypoint getNavigablePosition() 或 getOriginalPosition()。