我正在尝试在MQMapView上绘制路线。我在模拟器中对routeLoadFinished()
进行了以下回复,
<?xml version="1.0" encoding="UTF-8"?><response>
<info><statusCode>400</statusCode>
<messages><message>No sessionId found in request. You must provide a sessionId when requesting a Route Shape.</message></messages><copyright> <imageUrl>http://api.mqcdn.com/res/mqlogo.gif</imageUrl><imageAltText>© 2012 MapQuest, Inc.</imageAltText><text>© 2012 MapQuest, Inc.</text></copyright></info><route/></response>
我不知道为什么它说我要求一个路线形状,而我只是想通过
[self.route getRouteWithStartCoordinate:start endCoordinate:end];
绘制路线我正在使用许可数据。
最佳答案
您仍然看到此错误吗?通常,状态码400表示输入存在问题,因此服务无法计算路线。您是否认为您指定的坐标之间可能没有路线(例如,其中一个坐标是在海洋中还是在水域中,还是不在道路网中)?
免责声明:我在MapQuest工作。
关于iphone - MapQuest ios API无法请求路线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13476516/