which is a leisure route as there is plan=leisure and one itinerarypoint.
The reason this route fails is because the distance is being set to 0. Can you check that the interface always requires that a distance value is definitely set by the user, and that it isn't zero?
Also, if you use .json, you shouldn't send useDom=0. That relates only to XML.
We've uncovered one error scenario appearing in our logs from the app.
We're seeing requests like this:
http://www.cyclestreets.net/api/journey.json?key=d2ff10bbbded8e86&useDom=0&plan=leisure&itinerarypoints=-1.87371827823691%2C52.4328108436639&speed=20&distance=0
which is a leisure route as there is plan=leisure and one itinerarypoint.
The reason this route fails is because the distance is being set to 0. Can you check that the interface always requires that a distance value is definitely set by the user, and that it isn't zero?
Also, if you use .json, you shouldn't send useDom=0. That relates only to XML.