OSMNX geocoder returning incorrect coordinates

Viewed 137

When using the osmnx geocoder module, it seems that the wrong Latitude and Longitude is returned. I have cross checked the coordinates returned with multiple websites and it is not correct. This is the only relevant code being used:

addressList[0] = "7720 N Silverbell Rd, Tucson, Arizona 85743"
address = ox.geocode(addressList[0])
print(address)

Which returns: (32.301701, -111.0487101), however when searching on latlong.net, the correct coordinates for this address are (32.347720, -111.096870).

Is there anyway to ensure osmnx returns the correct coordinates?

2 Answers

Is there anyway to ensure osmnx returns the correct coordinates?

OSMnx returns whatever the OpenStreetMap Nominatim geocoder resolves your query to. You can try to tweak your query or play around with the Nominatim geocoder on the web to see what different queries resolve to.

Related