Question

I'm trying to draw a route on a MQMapView. I got the following response on the routeLoadFinished() call back in simulator,

<?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>

I don't know why it says I was requesting a route shape where I'm just trying to get the route drawn via [self.route getRouteWithStartCoordinate:start endCoordinate:end];

I'm using licensed data.

Was it helpful?

Solution

Are you still seeing this error? Generally, a status code 400 means that there was a problem with the input, so the service is unable to calculate the route. Do you think it's possible that there may not be a route between your specified coordinates (i.e., if one of them is in the ocean or a body of water, or away from the road network, etc)?

Disclaimer: I work at MapQuest.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top