无法从bing map获取位置详细信息?

时间:2013-10-15 03:05:54

标签: javascript jquery bing-api bing-maps

我正在使用bing map来获取纬度和经度值的位置。

这是获取位置详细信息的代码。

http://dev.virtualearth.net/REST/v1/Locations/51.5063249319792,-0.127144753932953?key=Mybingkey

结果:

{"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2013 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.","resourceSets":[{"estimatedTotal":0,"resources":[]}],"statusCode":200,"statusDescription":"OK","traceId":"a5c5302525354c90a6d265121d5634b2|SINM001004|02.00.183.2300|SINMSNVM000146"}

即使我使用新的bing键,它也只返回空值。为什么会这样。有人请帮助我。

1 个答案:

答案 0 :(得分:0)

再试一次。这很好用。请注意,您不需要12位小数。 5位小数的精度约为1米。所有其他小数位只会增加查询被混淆为地址的机会。请参阅Bing Maps REST服务的提示和技巧列表:http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/02/14/bing-maps-rest-service-tips-amp-tricks.aspx