必应地图。如何通过纬度和经度获取地址?
是否可以通过纬度和经度获取地址(国家、城市、街道等)? (必应地图版本 7)
Is it possible to get address(Country, City, street, etc) by latitude and longitude?
(BingMaps version 7)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在寻找的是反向地理编码 - 将坐标转换为地址(与常规地理编码相反,从地址信息获取坐标)。 BingMaps 7.0 javascript 库不直接支持此功能,但您可以从 Bing Maps REST 服务(特别是位置服务)获取此功能。
查看位置服务的文档和 Javascript 的文档他们提供示例调用该服务的库JavaScript。
What's you're looking for is reverse geocoding - translating a coordinate into an address (as opposed to regular geocoding, getting coordinates from address information). The BingMaps 7.0 javascript library doesn't support this directly, but you can get this functionality from the Bing Maps REST services, and specifically the Locations service.
Check out both the documentation of the Locations service and the docs of the Javascript library where they provide examples of calling that service from javascript.
经过所有研究,我得到了这个查询
http://dev.virtualearth.net/REST/v1/Locations/point?includeEntityTypes=entityTypes&includeNeighborhood=includeNeighborhood&include=includeValue&key=BingMapsKey
这个查询即将给我们给出纬度和经度后的地址。
阅读链接 https://msdn.microsoft.com/en-us/library/ ff701710.aspx
after all research I have got this query
http://dev.virtualearth.net/REST/v1/Locations/point?includeEntityTypes=entityTypes&includeNeighborhood=includeNeighborhood&include=includeValue&key=BingMapsKey
this query is about to give us address after giving the latitude and longitudes.
read the link https://msdn.microsoft.com/en-us/library/ff701710.aspx