0

我正在使用 bing 地图从纬度和经度值获取位置。

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

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 键,它也只返回空值。为什么会发生。任何人请帮助我。

4

1 回答 1

0

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

于 2014-01-15T14:58:46.467 回答