Skip to content

Commit

Permalink
Issue #144: support ref as main text label.
Browse files Browse the repository at this point in the history
  • Loading branch information
enzet committed Oct 25, 2022
1 parent e2f259b commit 387d081
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion map_machine/text.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""OSM address tag processing."""
"""Text processing for map element."""
from dataclasses import dataclass
from typing import Any, Optional

Expand Down Expand Up @@ -138,6 +138,10 @@ def construct_text(
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 += ", "
Expand Down

0 comments on commit 387d081

Please sign in to comment.