Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for address lookup without the borough #26

Open
Andrew-Dickinson opened this issue Aug 28, 2022 · 0 comments
Open

Add support for address lookup without the borough #26

Andrew-Dickinson opened this issue Aug 28, 2022 · 0 comments
Assignees

Comments

@Andrew-Dickinson
Copy link
Member

Right now we require a full address (including at least the borough name). Most people in the support channel seem to provide their address without the borough though

>>> dc.address_to_nn("9459 Oak St, Brooklyn NY")
5107
>>> dc.address_to_nn("9459 Oak St, Brooklyn")
5107
>>> dc.address_to_nn("9459 Oak St")
Traceback (most recent call last):
  File "C:\Users\fortk\AppData\Local\Programs\Python\Python38\lib\code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
  File "C:\Users\fortk\PycharmProjects\nycmesh-support-bot\mesh_database_client\database.py", line 126, in address_to_nn
    location = geocode_result[0]['geometry']['location']
IndexError: list index out of range
@andybaumgar andybaumgar self-assigned this Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants