Answers for "how to ascess GPS in python"

1

how to ascess GPS in python

# importing geopy library
from geopy.geocoders import Nominatim
 
# calling the Nominatim tool
loc = Nominatim(user_agent="GetLoc")
 
# entering the location name
getLoc = loc.geocode("Gosainganj Lucknow")
 
# printing address
print(getLoc.address)
 
# printing latitude and longitude
print("Latitude = ", getLoc.latitude, "n")
print("Longitude = ", getLoc.longitude)
Posted by: Guest on February-17-2022

Code answers related to "how to ascess GPS in python"

Python Answers by Framework

Browse Popular Code Answers by Language