如何使用bing map rest api找到一个位置

时间:2015-01-03 06:20:14

标签: bing-maps

当我写“Surat”,“mumbai”等任何位置时,它会使用Bing Map Rest API在地图上显示其位置,但是当我写“Jamnagar Reliance”时它不会给出任何结果 我使用“按查询位置”api搜索位置。

http://dev.virtualearth.net/REST/v1/Locations?q=

我正在使用上面的网址找到一个位置。 它返回以下结果

{"authenticationResultCode":"ValidCredentials","brandLogoUri":"http:\/\/dev.virtualearth.net\/Branding\/logo_powered_by.png","copyright":"Copyright © 2015 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":"a9a6612f91ad4d26af8782a71568b1e2|HK20271656|02.00.108.1000|HK2SCH010280621, HK2SCH010310228, HK2SCH010301656, i-98935154.ap-southeast-1a, CO3SCH010265312"}

1 个答案:

答案 0 :(得分:0)

当您搜索Jamnagar Reliance时,Bing Maps实际上会找到Reliance,India。如果没有返回结果,您还应检查响应的标头。试用和基本Bing映射密钥的速率受到限制,以确保非许可用户不会为许可用户分发服务。您可以在此处找到有关速率限制的文档:https://msdn.microsoft.com/en-us/library/ff701703.aspx