📍 Learn how to geocode addresses in Python using the geopy library and Nominatim (free geocoding service)! In this quick tutorial, you'll discover:
✅ How to install and use geopy
✅ Fetching latitude & longitude from any address
✅ Understanding Nominatim (OpenStreetMap's geocoding tool)
✅ Printing raw location data
🔹 Code Used:
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="hid-training")
address = 'Oxford Road, Manchester, M13 9PL, United Kingdom'
location = geolocator.geocode(address)
print(location.longitude)
print(location.latitude)
print(location.raw)
💡 Perfect for: Python beginners, GIS developers, data analysts, and anyone working with location data!
📌 Subscribe for more Python & geocoding tutorials!