bing map api没有给出适当的回应

时间:2016-03-16 09:46:25

标签: javascript html maps bing-maps

<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/search/local/ws/rest/v1">
<Copyright>
Copyright © 2016 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.
</Copyright>
<BrandLogoUri>
http://dev.virtualearth.net/Branding/logo_powered_by.png
</BrandLogoUri>
<StatusCode>200</StatusCode>
<StatusDescription>OK</StatusDescription>
<AuthenticationResultCode>ValidCredentials</AuthenticationResultCode>
<TraceId>
48a2c46d66214527b6e6668db23d606d|HK20271744|02.00.153.400|CO30204710
</TraceId>
<ResourceSets>
<ResourceSet>
<EstimatedTotal>0</EstimatedTotal>
<Resources/>
</ResourceSet>
</ResourceSets>
</Response>

但地图显示指定位置的拥堵和交通堵塞......

1 个答案:

答案 0 :(得分:0)

Bing Maps Traffic API仅返回车祸或施工等事故,并且不会返回任何交通流信息,这是您在地图上使用彩色编码道路所看到的信息。这就是为什么服务中的响应与您在地图上看到的内容不一致的原因。