Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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, "
")
print("Longitude = ", getLoc.longitude)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #ascess #GPS #python
ADD COMMENT
Topic
Name
7+8 =