-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems in the shape of the routes after importig GTFS #241
Comments
This ocurres while the algorithm is searching the location on the busstop along the shape. When the best match is not found or the best match skips the correct location. The fixing, in all the cases, is using the ShapeDistanceTraveled of GTFS. If it is not provided, the parameter maxDistanceBetweenStops should be carefully selected in order to avoid the cause. |
There is a special case, if route passes over the same arc (street), it is still possible to select the incorrect shape segment for the bus stop if the field shapedistancetraveled is not provided.
It would help if you could provide example valeus for maxDistanceBetweenStops and maxTravelTimeSegmentLength. |
Hi Wojciech,
Generally speaking maxDistanceBetweenStops depends on the topology of the route. The algorithm will search the next stop until maxDistanceBetweenStops. If next stop is farther that that, it might be an issue. So 20 km it is quiet a lot, but if the trip is between towns without too many stops you might consider even greater values.
On the other hand, according to the parameter documentation:
maxTravelTimeSegmentLength: "For determining how many travel time segments should have between a pair of stops. Default is 200.0m, which means that many stop stopPaths will have only a single travel time segment between stops.” I would recommend about 50% or more of maxDistanceBetweenStops, considering that maxDistanceBetweenStops is set according to the topology.
Best regards
Vicente
… On 28-11-2023, at 08:13, Wojciech Kulesza ***@***.***> wrote:
It would help if you could provide example valeus for maxDistanceBetweenStops and maxTravelTimeSegmentLength.
I currently have 20000.0 and 100
—
Reply to this email directly, view it on GitHub <#241 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJUAAGDONZUXFZMZFQ3SO6DYGXBO3AVCNFSM467HNU42U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBSHE3DCMBVGU2Q>.
You are receiving this because you authored the thread.
|
Expected functionality
The routes should be the same as the GTFS file.
Describe the bug
In some case, the construction of the shape results with unexpected segment from the polyline to the busstop.
To Reproduce
Import specific GTFS.
The text was updated successfully, but these errors were encountered: