mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
Store entrance fields as columns on table
This commit is contained in:
@@ -77,8 +77,8 @@ def write_entrances(out: JsonWriter, entrances: Optional[List[EntranceDetails]])
|
||||
out.start_object()\
|
||||
.keyval('osm_id', entrance.osm_id)\
|
||||
.keyval('type', entrance.type)\
|
||||
.keyval('lat', f"{entrance.lat:0.7f}")\
|
||||
.keyval('lon', f"{entrance.lon:0.7f}")
|
||||
.keyval('lat', f"{entrance.location.lat:0.7f}")\
|
||||
.keyval('lon', f"{entrance.location.lon:0.7f}")
|
||||
|
||||
if entrance.extratags:
|
||||
out.keyval('extratags', entrance.extratags)
|
||||
|
||||
@@ -87,8 +87,8 @@ def _create_entrance(root: ET.Element, entrance: EntranceDetails) -> None:
|
||||
entrance_node = ET.SubElement(root, 'entrance', attrib={
|
||||
"osm_id": str(entrance.osm_id),
|
||||
"type": entrance.type,
|
||||
"lat": f"{entrance.lat:0.7f}",
|
||||
"lon": f"{entrance.lon:0.7f}",
|
||||
"lat": f"{entrance.location.lat:0.7f}",
|
||||
"lon": f"{entrance.location.lon:0.7f}",
|
||||
})
|
||||
if entrance.extratags:
|
||||
for k, v in entrance.extratags.items():
|
||||
|
||||
Reference in New Issue
Block a user