Skip to content

Commit

Permalink
Fixes for plus code geocoding
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Apr 7, 2024
1 parent acabc44 commit a64cda9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion operators/geocode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ def func(row):
accuracy = resp.accuracy
address = resp.address
if accuracy == 'GEOMETRIC_CENTER':
if resp.quality in ('establishment', 'plus_code'):
if resp.quality == 'establishment':
accuracy = 'POI_MID_POINT'
elif resp.quality == 'plus_code':
accuracy = 'ROOFTOP'
else:
print(accuracy, resp.quality)
if pluscode:
Expand Down

0 comments on commit a64cda9

Please sign in to comment.