I have the idea of how to get the value but I am not sure how to put this into a function.
I am using geopy.
I tried:
locator = Nominatim(user_agent