Open IpswichMapper opened 3 years ago
In our region, stops are often to the left (with right hand traffic): The tram is mapped as two separate ways and then the stop is added in the middle between those ways. For rails, this is even more difficult. We have some stops that have platforms at both sides, in some cases, both can be used, in some cases, only the right one.
For this feature, I would advise to use stop areas instead: Detect all stop areas the route is passing. Then, for each area, select the best 'stop' and 'platform', preferring the ones on the right if present.
For trains and trams, I think you can have different settings.
However, for buses, stops will always be either on the right or left side of the road. I think this feature should mainly be for buses.
furthermore, like the old public transport addon, you can simply have three options:
If you are doing tram or train, simply chose "stops appear on both sides.
@sudhanshu2
Thanks for undertaking this task! Is there any progress on this?
Yeah I have made some progress but I am currently trying to remove the stopToWay bug! I am a bit new to JOSM so I will try and incorporate all of the features you and @michaelzangl have described! Am a bit behind on bug fixes because of school work, but I will try and get this done pretty soon!
This is the feature that is present in the "public transport" addon, and would be really, REALLY useful if we could have it support the PTv2 schema. Currently, the "public transport" addon needs "forward" and "backward" roles to tell whether a stop is on the left side or right side of the road. If this feature could be implemented into pt_assistant, it could really speed up the mapping of public transport routes.
Here is the java file which (I think) contains the "suggest stops" code:
https://github.com/openstreetmap/josm-plugins/blob/efc3157855f357e2a6d9a1800c75d91b9d4bad29/public_transport/src/org/openstreetmap/josm/plugins/public_transport/actions/RoutePatternAction.java
Here seems to be some code I salvaged from that file that actually does the "suggesting stops":
See: https://lists.openstreetmap.org/pipermail/josm-dev/2020-November/008346.html