How to Solve NameError: name 'Nominatim' is not defined -- geopy

Solution: Import the 'Nominatim' module

To Solve the error, add the following line to the top of your code.

from geopy.geocoders import Nominatim

 

For more information:
Python geopy Nominatim