Odd problem with a route, can't find the problem

3 posts / 0 new
Last post
tarouma
Odd problem with a route, can't find the problem

I have a route that is returning the following:

MQA.PlatformService.CALLBACKS[
    "ps-1061502250175.5955"
]({
    "route": {
        "routeError": {
            "message": "",
            "errorCode": 0
        }
    },
    "info": {
        "copyright": {
            "text": "© 2016 MapQuest, Inc.",
            "imageUrl": "https://api-s.mqcdn.com/res/mqlogo.gif",
            "imageAltText": "© 2016 MapQuest, Inc."
        },
        "statuscode": 400,
        "messages": [
            "We are unable to route with the given locations."
        ]
    }
});

 

So the route returns no error, but the statuscode is returning 400. All I can find in the docs is mention of 400 in the directions but a different message than I am getting here. The route has 19 points on it, so this message makes it difficult to find the problem.

 


tarouma
I found the cause, a typo in

I found the cause, a typo in an address. But not sure why it is returning that statuscode.


MQBrianCoakley
The directions api status
The directions api status code guide shows a 400 means, "Error with input". It doesn't say which input, but it does indicate an input issue.