ResRobot - Travel Planner - Problem with calculating some routes
Hi!
I'm developer from Bokahem company. We use ResRobot - Travel Planner API to calculate public transport routes between points. It works fine, but sometimes we have a 500 error response from Trafiklab API:
"errorCode":"INT_ERR","errorText":"internal error".
Example of such request:
https://api.resrobot.se/v2/trip?key=OUR_KEY&originWalk=1,0,1000,75&destWalk=1,0,1000,75&format=json&originCoordLat=57.69436739999999&originCoordLong=12.0526606&destCoordLat=57.8066394&destCoordLong=11.9984621&searchForArrival=0&date=2021-09-17&time=12:36&numB=0&numF=1
Coordinates seems to be fine, but no routes returned. May you please help to understand why there is such 500 response ("errorCode":"INT_ERR","errorText":"internal error") ?
Thank you for any help!
Best regards,
Pete Lashin,
Bokahem
I'm developer from Bokahem company. We use ResRobot - Travel Planner API to calculate public transport routes between points. It works fine, but sometimes we have a 500 error response from Trafiklab API:
"errorCode":"INT_ERR","errorText":"internal error".
Example of such request:
https://api.resrobot.se/v2/trip?key=OUR_KEY&originWalk=1,0,1000,75&destWalk=1,0,1000,75&format=json&originCoordLat=57.69436739999999&originCoordLong=12.0526606&destCoordLat=57.8066394&destCoordLong=11.9984621&searchForArrival=0&date=2021-09-17&time=12:36&numB=0&numF=1
Coordinates seems to be fine, but no routes returned. May you please help to understand why there is such 500 response ("errorCode":"INT_ERR","errorText":"internal error") ?
Thank you for any help!
Best regards,
Pete Lashin,
Bokahem
Följ inlägget
0
följare
It seems like the route-planner has issues to construct a route between these points. Increasing the maximum walking distance to 5km by setting originWalk=1,0,5000,75 resolves the issue. The maximum allowed by the routeplanner is 10km.
The new query becomes
https://api.resrobot.se/v2/trip?key=OUR_KEY&originWalk=1,0,5000,75&destWalk=1,0,5000,75&format=json&originCoordLat=57.69436739999999&originCoordLong=12.0526606&destCoordLat=57.8066394&destCoordLong=11.9984621&searchForArrival=0&date=2021-09-17&time=12:36&numB=0&numF=1
Regards,
Bert