簡體   English   中英

BING REST API不起作用

[英]BING REST API doesn't work

http://dev.virtualearth.net/REST/V1/Routes/Driving?wp.0=39.8620280&wp.1=32.8374178&key=API_KEY

我已經在瀏覽器中輸入了該網址,但出現了如下錯誤:

{"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.","errorDetails":["One or more locations specified in the waypoint parameter are invalid or require more information.","39.8620280","32.8374178"],"resourceSets":[],"statusCode":404,"statusDescription":"Not Found","traceId":"5cfe0d5b2852496b8163d3aad91ff48b|DB40060843|1.0.0.0|DB4SCH010060562, DB4SCH010061332, DB4SCH010080419, i-3f429881.us-east-1b, DB4SCH010061320, DB4SCH010061331, DB4SCH010080218, i-2276fe9c.us-east-1b"}

如何解決呢?

您的航點不正確。 您只為每個點提供了一個坐標。 正確的方法是同時給定緯度和經度,以逗號分隔,如下所示:

http://dev.virtualearth.net/REST/V1/Routes/Driving?wp.0=39.8620280,39.8620280&wp.1=32.837417,39.86202808&key=API_KEY

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM