pythongeocodeosmnx

OSMNX geocoder returning incorrect coordinates


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?


Solution

  • so the answer to your question might be because you are not projecting your Network. Take a look at this similar question I posted which was answered by the creator of the library: Node found is too far from my lat, lon coordinates (osmnx)