反向地理编码:城市与国家/地区相同?

问题描述 投票:0回答:1

我正在使用HERE Mapsreverse geocodeAPI,来自巴基斯坦的用户发送了一个报告,称坐标对31.522473692893982, 74.33312326669693的国家和城市都被报告为“巴基斯坦”。我已仔细检查并发现了相同的错误;这是响应:{"items":[{"title":"Pakistan, Pakistan","id":"here:cm:namedplace:22928320","resultType":"locality","localityType":"city","address":{"label":"Pakistan, Pakistan","countryCode":"PAK","countryName":"Pakistan","city":"Pakistan"},"position":{"lat":33.70964,"lng":73.07545},"distance":0,"mapView":{"west":60.87305,"south":23.7033,"east":77.13585,"north":37.07742}}]}

countryNamecity都被报告为“巴基斯坦” –实际上这是不正确的,并且会使用户感到困惑。这也很难在我的应用中以编程方式处理-如果city不存在,则应为空白,我可以为此编写代码检查。

上面是第18大城市

世界上] Lahore的坐标!使用坐标对31.5204, 74.3587时,我也遇到了同样的错误-Google将其报告为拉合尔的center

。这里没有任何借口不至少使这个大城市正确,即使是在地方一级。 谢谢,

已导航

[我正在使用HERE Maps反向地理编码API,来自巴基斯坦的用户发送了一个报告,该国家和城市的坐标对31.522473692893982,74 ....被报告为“巴基斯坦”。

here-api
1个回答
0
投票
这的确令人困惑。同时,尝试Places API。对于您使用的坐标,它将返回拉合尔。

GET https://places.ls.hereapi.com/places/v1/discover/search? at=31.522473692893982,74.33312326669693& q=31.522473692893982,74.33312326669693& apikey={{apiKey}}

© www.soinside.com 2019 - 2024. All rights reserved.