Bing Map REST API无效

时间:2014-01-11 14:25:30

标签: rest bing-maps

如果我将以下网址放在浏览器中 http://dev.virtualearth.net/REST/v1/Locations?q=bangalore+karnataka+india&key=

回复低于

    {
authenticationResultCode: "ValidCredentials",
brandLogoUri: "http://dev.virtualearth.net/Branding/logo_powered_by.png",
copyright: "Copyright © 2014 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: "f54d507047604f1585db1e00254b9a7d|SINM000007|02.00.183.2300|SINMSNVM000034"
}

未获得资源

网址中的任何问题?

2 个答案:

答案 0 :(得分:1)

当您的帐户受到费率限制时,会返回空结果。请注意,所有基本和试用密钥都受到使用条款中记录的速率限制。

答案 1 :(得分:1)

速率限制是可能的,但我相信您的问题与您的查询有关。空格应编码为%20而不是+。请尝试此查询:http://dev.virtualearth.net/REST/v1/Locations?q=bangalore%20karnataka%20india&key=YOUR_BING_MAPS_KEY

另外,请查看REST服务的这些提示和技巧:http://www.bing.com/blogs/site_blogs/b/maps/archive/2013/02/14/bing-maps-rest-service-tips-amp-tricks.aspx