cyclestreets / winphone

Windows Phone 8 app
1 stars 0 forks source link

Leisure routes failing #91

Closed mvl22 closed 7 years ago

mvl22 commented 7 years ago

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.

realworld666 commented 7 years ago

Fixed in next update