简体   繁体   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 http://dev.virtualearth.net/REST/V1/Routes/Driving?wp.0=39.8620280&wp.1=32.8374178&key=API_KEY

I've entered this url in the browser but got an error like this: 我已经在浏览器中输入了该网址,但出现了如下错误:

{"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"}

How to solve this? 如何解决呢?

Your waypoints are incorrect. 您的航点不正确。 You only provided a single coordinate for each point. 您只为每个点提供了一个坐标。 Correct way would be to give both latitude and longitude, separated by coma, like this: 正确的方法是同时给定纬度和经度,以逗号分隔,如下所示:

http://dev.virtualearth.net/REST/V1/Routes/Driving?wp.0=39.8620280,39.8620280&wp.1=32.837417,39.86202808&key=API_KEY 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