I'm trying to obtain coordinates for road intersections similar to how you can type '1100 N & 300 W' in Google Maps, but given a table with tens of thousands of pairs. Does anyone know of a geolocation module that supports that type of search?
I'm testing geopy, which can easily locate one roadway and even includes the option to limit the search by an area (i.e. city or county), but after several attempts to change my test intersection wording still can't go beyond locating a single roadway.
I've tried simply changing the road names to be more descriptive, ie CR 1100 N and CR 300 W...W CR 1100 N and N CR 300 W, but the inclusion of CR actually throws an error entirely.
Here's what I have so far...
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="agent", format_string="%s, Madison County, IN")
location = geolocator.geocode("1100 N & 300 W")
print(location.address)
print(location.latitude)
print(location.longitude)
And the results:
Address: North 300 West, Anderson, Madison County, Indiana, 46011, USA
Latitude: 40.142406 Longitude: -85.728747
Expected Lat: 40.262935 Expected Lon: -85.728308