mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-05 20:31:51 +02:00
Issue #144: support ref
as main text label.
This commit is contained in:
parent
e2f259bfc5
commit
387d081010
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
"""OSM address tag processing."""
|
||||
"""Text processing for map element."""
|
||||
from dataclasses import dataclass
|
||||
from typing import Any, Optional
|
||||
|
||||
|
@ -138,6 +138,10 @@ class TextConstructor:
|
|||
name = tags["name:en"]
|
||||
processed.add("name:en")
|
||||
processed.add("name:en")
|
||||
elif "ref" in tags:
|
||||
name = tags["ref"]
|
||||
processed.add("ref")
|
||||
|
||||
if "alt_name" in tags:
|
||||
if alternative_name:
|
||||
alternative_name += ", "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue