Skip to content
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

Shape from two stops - straight line #38

Open
mgmembiela opened this issue Nov 23, 2022 · 7 comments
Open

Shape from two stops - straight line #38

mgmembiela opened this issue Nov 23, 2022 · 7 comments

Comments

@mgmembiela
Copy link

mgmembiela commented Nov 23, 2022

Hi we need claculate Shape from two points (stops) and the results is a sstraight line, with three stops ot more the result is a good shape. Any known problems to make a shape with only two points? Could it be too far away?
Thanks!
L0110

@patrickbr
Copy link
Member

Hi, this should be no problem - are you sure that there is actually a possible route through the OSM data connecting the two stops? A straight line is a fallback if no matching route was found. Could you give me the coordinates, the route type, and the arrival and departure times at the first and last station?

@mgmembiela
Copy link
Author

Hi, yes there is an OSM route (attached image):

coors
41.379550934,2.1383321285
41.594032288,1.8397530317
route_type = 3 (BUS)

stops
stop_id,stop_code,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,location_type,parent_station,stop_timezone,wheelchair_boarding,platform_code
PF08019019,,Barcelona (Sants),,41.379573822,2.1383149624,,,0,,,0,
PF08127005,,Monestir de Montserrat,,41.594032288,1.8397530317,,,0,,,0,

stop_times
trip_id,arrival_time,departure_time,stop_id,stop_sequence,stop_headsign,pickup_type,drop_off_type,shape_dist_traveled,timepoint
114157145,17:00:30,17:00:30,PF08127005,0,,0,0,0,1
114157145,18:15:30,18:15:30,PF08019019,1,,0,3,34496.375,1
osm

@mgmembiela
Copy link
Author

mgmembiela commented Nov 28, 2022

HI, is it working for you? thanks.

@patrickbr
Copy link
Member

Yes, sorry for the late reply - I am currently debugging this, your data was very helpful :)

@mgmembiela
Copy link
Author

Yes, sorry for the late reply - I am currently debugging this, your data was very helpful :)

Hi! any idea?

@zabuTNT
Copy link

zabuTNT commented Apr 23, 2024

I had a similar issue.
Probably you have to customize the default pfaedle.conf.

Check this issue, too:
#29
Maybe there is an issue on OSM about the oneway directions, or you have to change penalties.

2024-04-23-135416_1093x506_scrot

@doncicuto
Copy link

Hi there, pfaedle is awesome thanks a lot for it. I too have found problems with trips that only have two stops on it, I get a straight line (either for rails or for buses). If the same route has more stops the shape is created fine.

I've tried to debug this issue without luck. About the mentioned penalties would you give me a hint on what I could try to change?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants