-
When I try to search for connections, my client creates e.g. this Request: {
"_type": "IntermodalRoutingRequest",
"start": {
"_type": "IntermodalOntripStart",
"position": {
"lat": 46.756,
"lng": 7.606
},
"departure_time": 1723198712
},
"start_modes": [
{
"mode": {
"_type": "Foot",
"max_duration": 900
}
}
],
"destination": {
"_type": "InputPosition",
"position": {
"lat": 48.55429,
"lng": 9.386918
}
},
"destination_modes": [
{
"mode": {
"_type": "Foot",
"max_duration": 900
}
}
],
"search_type": "Default",
"search_dir": "Forward",
"router": "",
"allowed_claszes": [
0,
1,
2,
3,
4,
5,
6,
7,
11,
12
]
} The server returns an 200 (so it seems okay, but the request does not include any connections. However if I try out the Web UI for these coordinates, it gives some connections. Any ideas what could be the issue? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
I think this is a bug. Your starting coordinate is too far (>200m) from the street network, so the result of the foot routing is something like Both endpoints (PPR + OSRM) are implemented by the However, for the FootPPR case (which is used in the demo UI), the numbers are devided by 60 here without checking for the case that the special value So actually, returning no result (like it's the case for your query) is the correct result. The UI returning results with a 18h footpath is a bug because the footpath length should indicate "not possible" which seems not to be checked. My assumption was that the Edit: so I think the correct way to handle this would be to check for the special |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the answer. Is it somehow possible to set this value (200m) in the configuration for a MOTIS instance? |
Beta Was this translation helpful? Give feedback.
-
Follow up question: {
"_type": "IntermodalRoutingRequest",
"start": {
"_type": "IntermodalOntripStart",
"position": {
"lat": 47.839134,
"lng": 7.715423
},
"departure_time": 1723448056
},
"start_modes": [
{
"mode": {
"_type": "Foot",
"max_duration": 3600
}
}
],
"destination": {
"_type": "InputPosition",
"position": {
"lat": 48.374235,
"lng": 8.088494
}
},
"destination_modes": [
{
"mode": {
"_type": "Foot",
"max_duration": 3600
}
}
],
"search_type": "Default",
"search_dir": "Forward",
"router": "",
"allowed_claszes": [
0,
1,
2,
3,
4,
5,
6,
7,
11,
12
]
} Note I needed to increase the foot routing time to 30 mins or more, to get a connection for this one. |
Beta Was this translation helpful? Give feedback.
For the
destination
, thelat
andlng
fields need to be included directly in theInputPosition
- there is noposition
field.With these class restrictions, it returns no results, but your request works with the position fix and without
allowed_claszes
: