I am using geopy.geocoder to get coordinates for a large number of locations. I didn't specify user_agent, I only put my email as a string as "user_agent = '[email protected]' ". I successfully got results smoothly this way, but I am wondering what api services I am using.
My main code is here:
from geopy.geocoders import Nominatim
from geopy.exc import GeocoderTimedOut
geolocator = Nominatim(user_agent='[email protected]')
result = geolocator.geocode(location, timeout = 100)
Thanks a lot!
The user agent is not there to request a specific API services, but to tell the Nominatim API who is making the request.
You are sending a request with your the user agent simply so the API can identify the application that is doing the API call.
Edit:
With your use of
from geopy.geocoders import Nominatim
and
geolocator = Nominatim(user_agent='[email protected]')
you are calling the nominatim API.
The website for that can be found here
You can collect all this information from the docs for
GeoPy
.Which you can find here.
You can use different APIs in geopy.
All of the information for that can also be found in the API documentation.