Skip to content

Commit

Permalink
Update address_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Feb 17, 2024
1 parent 1ccce0d commit abea1ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions incident_scraper/models/address_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ def process_at_and_streets(self, address: str):
]
if len(ordinals) == 1 and len(non_ordinal_streets) == 1:
return f"{ordinals[0]}00 {non_ordinal_streets[0]}"
elif len(non_ordinal_streets) == 2:
return " and ".join(non_ordinal_streets)
else:
return address

def process(self, address: str) -> str:
address = self._correct_replacements(address)
Expand Down

0 comments on commit abea1ad

Please sign in to comment.