I am trying to find out the coordinates of various addresses located in NYC (NYPD precinct address), United States. However, the below code returns the coordinates for a place in South Africa (miles away from the US).
location = geolocator.geocode("2271-89 8th Avenue")
print((location.latitude, location.longitude))
My guess is geopy does not pick up this address as that in Manhattan, NYC. I got this address from New York Police's website.
Questions-
- How to specify which country or place the geopy should look?
- How does geopy pick one address if there are multiple places with the same address like above?
- How can I fix my issue?