Import: Bus stops from GTFS

PTNA checks this while analyzing a route relation. If ‘route_ref’ exists on a stop, ‘ref’ of the relation must be listed there. If ‘route_ref’ does not exist, nothing happens. It is widely used in my area.

Do you mean by this that if a relation’s ref is missing from a stop’s route_ref, then this is listed as an error for the route in the analysis page? Or something else happens?

If it’s what I said, this sounds useful for detecting outdated route relations, of which there are plenty. Occasionally gtfs2osm wants to delete a bus stop, but fails because it’s part of a route relation that hasn’t been updated in ages, and I have to fix it manually.

Correct. If route_ref exists it must be exhaustive and correct.

PTNA is in the comfortable position of only checking whether ref is in route_ref, that’s all.

gtfs2osm has the more complicated task of proposing the value of route_ref, right?

Yes, but it’s not that hard. Python makes tasks like this almost trivial. It’s a little bit harder if I want to maintain the order set by other mappers, as route_ref should ideally list the lines in order of importance. But even that should be easy enough for me.

@NeatNit
לא הבנתי למה לא להעתיק גם את מספרי התחנה שבתוך הרציפים?
הרי גם אלה נתונים מתוך קובץ התחנות ב
GTFS

כדי שכל הקוראים יבינו על מה אנחנו מדברים:

אתה הוספת את הרציפים בתחנה המרכזית באילת: Changeset: 163660825 | OpenStreetMap

שזה כמובן דבר טוב ומוערך! יש רק שתי בעיות:

  1. הייבוא שלי לא ממש יודע איך להתמודד עם זה. במיוחד הייבוא לא מצפה שמשתמשים אחרים יוסיפו תגיות gtfs:*:IL-MOT, שאתה הוספת.
  2. השתמשת בתגית ref בשביל מספר הרציף, כשלמעשה אמורים להשתמש ב-local_ref.

אז אני הצעתי שלעת עתה נמחק את התגיות gtfs ואת ref - כדי לא לבלבל את הייבוא - ונשאיר במקומם את local_ref ואת שאר התגיות (שם וכו׳). אז זה לא יתנגש עם הייבוא. ואני אנסה בהזדמנות הראשונה לשפר את הקוד שלי כדי שיוכל להתמודד כמו שצריך עם רציפים שונים של תחנה מרכזית, ולאחר מכן נוכל להחזיר את התגיות האחרות.

לצערי הכמה שבועות הקרובים הם מאוד עמוסים בחיים שלי, ואני לא חושב שאוכל למצוא את הזמן להתעסק בזה.

Edit: for reference, this is the open issue regarding central stations, which I will now consider high priority: #5 - Figure out how to do central stations - NeatNit/gtfs2osm-il - Codeberg.org

@SafwatHalaby, today is the first time (AFAIK) that a newly imported bus stop uses an Arabic name: Node: ‪Haifa Road/5124‬ (‪12681493279‬) | OpenStreetMap

It’s in Nazareth. Seems to be working as it should so far :slight_smile:

Awesome! Looks like a healthy baby bus stop to me!