Skip to content

Commit

Permalink
areas, osm housenumber split: handle ','
Browse files Browse the repository at this point in the history
  • Loading branch information
vasony committed Feb 11, 2024
1 parent 97c4c68 commit d6e2a22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import ranges
import util


class RelationConfigBase:
"""A relation configuration comes directly from static data, not a result of some external query."""
def __init__(self, parent_config: Dict[str, Any], my_config: Dict[str, Any]) -> None:
Expand Down Expand Up @@ -329,7 +328,7 @@ def get_osm_housenumbers(self, street_name: str) -> List[util.HouseNumber]:
street = row[columns["addr:street"]]
if not street and "addr:place" in columns:
street = row[columns["addr:place"]]
for house_number in row[columns["addr:housenumber"]].split(';'):
for house_number in row[columns["addr:housenumber"]].replace(',', ';').split(';'):
if street not in house_numbers:
house_numbers[street] = []
house_numbers[street] += normalize(self, house_number, street, street_ranges)
Expand Down

0 comments on commit d6e2a22

Please sign in to comment.