This commit is contained in:
@@ -98,14 +98,12 @@ def normalize_station_elements(
|
||||
if not name:
|
||||
continue
|
||||
|
||||
raw_code = tags.get("ref") or tags.get(
|
||||
"railway:ref") or tags.get("local_ref")
|
||||
raw_code = tags.get("ref") or tags.get("railway:ref") or tags.get("local_ref")
|
||||
code = str(raw_code) if raw_code is not None else None
|
||||
|
||||
elevation_tag = tags.get("ele") or tags.get("elevation")
|
||||
try:
|
||||
elevation = float(
|
||||
elevation_tag) if elevation_tag is not None else None
|
||||
elevation = float(elevation_tag) if elevation_tag is not None else None
|
||||
except (TypeError, ValueError):
|
||||
elevation = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user