Extend stops to DACH-region
Deploy PBT / deploy (push) Failing after 2m53s

This commit is contained in:
2026-09-12 07:06:29 +02:00
parent 039e2905dd
commit a52e233c31
9 changed files with 204 additions and 139 deletions
+5 -1
View File
@@ -37,7 +37,8 @@ VERKEHRSMITTEL_OPTIONEN = [
class Stop(db.Model):
"""A boardable public-transport stop ("Haltestelle") in Austria.
"""A boardable public-transport stop ("Haltestelle") in Austria, Germany
or Switzerland (DACH).
Sourced from OpenStreetMap; see scripts/fetch_stops.py and stops_import.py.
"""
@@ -52,6 +53,9 @@ class Stop(db.Model):
# lowercased, accent-folded copy of name for diacritic-insensitive search
name_normalized = db.Column(db.String(200), nullable=False, index=True)
stop_type = db.Column(db.String(20), nullable=False, default="other")
# ISO 3166-1 alpha-2 of the fetch query that found this stop (AT/DE/CH) -
# disambiguates same-named stops across borders (several "Hauptbahnhof").
country = db.Column(db.String(2), nullable=False, default="AT")
municipality = db.Column(db.String(120))
latitude = db.Column(db.Float, nullable=False)
longitude = db.Column(db.Float, nullable=False)