Page 1 of 1

cannot calculate route (concerning leg 1)

Posted: Thu Nov 14, 2019 5:03 pm
by i.kobeissy
hello,

i'm trying to use caculateRoute on xRoute server, i'm using the version 1.24, and 2016 maps
my request is very simple it's just 2 waypoints, and always getting "cannot calculate route"
now here's how i'm thinking, if i'm doing anything wrong please tell me or tell me where i should be looking
- in the attached request file, i'm able to draw the 2 waypoints on the map
- the coordinates of the two waypoints are calculated using xLocate
==> so with these 2 facts in hand i can assume this is enough to say that the coordinates are correct

- out of these 2 waypoints i was able to create a tour using xTour and now i'm trying to draw the tour,
==> and this is what's not logical for me
xTour is able to create a tour but xRoute is not able to calculate the route, and also attached the response i'm getting, it's always stating cause nil

can anyone help me with this please

Re: cannot calculate route (concerning leg 1)

Posted: Thu Dec 12, 2019 3:13 pm
by Bernd Welter
Hello Ibrahim,

looks like the start waypoint causes an issue:
as you didn't specify the LinkingType property the engine applies the default value which is a NEXT_NODE.

By setting it to an explizit AUTO_LINKING it works on my local environment.
Please check this...

Best regards,
Bernd

PS: sorry for the late reply - I've overseen your post's notification mail