来自Bing地图API的错误长/ LAT [英] Wrong Long/LAT from the Bing map API

查看:79
本文介绍了来自Bing地图API的错误长/ LAT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要获取以下位置的LONG / LAT,并从检索到的LONG / LAT值中检索相同的位置信息。

I need to get the LONG/LAT for the following location and retrieve the same location info back from the retrieved LONG/LAT value.

但是,Bing地图api返回错误值

But, the Bing map api returning wrong values

地址: - Novi Meadows 5th Grade House,25549 Taft Road,Novi,MI,48374

我们收到了来自API的以下详细信息

We Received the following details from API

经度: - 42.4720649719238(从API收到)

纬度: - -83.5087738037109(从API收到)

 

由于技术问题,我无法在此处添加图片。请查看它,并告诉我们这里缺少的内容。

I am unable to add the image here due to technical issues. Please review it and let us know what we are missing here.

谢谢




推荐答案

您好Sparta,

Hi Sparta,

Bing地图将始终返回规范化地址,但您需要正确传递参数电话。 我建议您查看 https://msdn.microsoft.com/en-us/library/ff701714。 aspx
,具体说明如何分解地址,以便API不必消除歧义。 我假设您的通话类似于:

Bing maps will always return the normalized address but you do need to pass the parameters correctly to the call.  I suggest you look at https://msdn.microsoft.com/en-us/library/ff701714.aspx and specifically how to break up the address so the API does not have to disambiguate.  I am assuming your call looks something like:

  http://dev.virtualearth.net/ REST / v1 / Locations?CountryRegion = US& adminDistrict = MI& locality = Novi& postalCode = 48374& addressLine = 25549%20Taft%20Road& key = BingMapsKey

 http://dev.virtualearth.net/REST/v1/Locations?CountryRegion=US&adminDistrict=MI&locality=Novi&postalCode=48374&addressLine=25549%20Taft%20Road&key=BingMapsKey

我得到(  42.476456,-83.495358 )这似乎是正确的 https://www.bing.com/maps?osid=feb64c46-715b-4558-8202-5b9237d28318&cp=42.476954~-83.499052&lvl=16&imgid=9254eda3-c8f2-40bb-9661-8c8b443eb332& ; v = 2& sV = 2& form = S00027

I get ( 42.476456,-83.495358 ) which seems correct at https://www.bing.com/maps?osid=feb64c46-715b-4558-8202-5b9237d28318&cp=42.476954~-83.499052&lvl=16&imgid=9254eda3-c8f2-40bb-9661-8c8b443eb332&v=2&sV=2&form=S00027

此致

Sincerely,

IoTGirl

IoTGirl


这篇关于来自Bing地图API的错误长/ LAT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆