This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user