Skip to content

Commit

Permalink
Update geocoder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Feb 17, 2024
1 parent 34d890f commit 704d1de
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions incident_scraper/external/geocoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def get_address_information(self, address: str, i_dict: dict) -> bool:
)

if INCIDENT_KEY_ADDRESS not in i_dict:
self._parse_and_process_address(address)
self._get_address_from_cache(
i_dict, self._parse_and_process_address(address)
)

# Return if an address was found.
return INCIDENT_KEY_ADDRESS in i_dict
Expand Down Expand Up @@ -94,8 +96,7 @@ def _parse_between_addresses(self, address: str) -> dict:
# TODO
pass
elif len(processed_addresses) == 1:
# TODO
pass
self.address_cache[address] = self._google_validate_address(address)
else:
self.address_cache[address] = self.NON_FINDABLE_ADDRESS_DICT

Expand Down

0 comments on commit 704d1de

Please sign in to comment.