Skip to content Skip to sidebar Skip to footer

Extract Latitude And Longitude From Coordinates

I have this sort of data, and I want to extract the latitude and longitude in Python. col[index]= 52.420223333,-1.904525 52.420221667,-1.904531667 52.420221667,-1.904536667 52.4202

Solution 1:

for index in range(len(col)):
    lat, lon = col[index].split(",")
    print "lat=%s, lon=%s" % (lat, lon)

Post a Comment for "Extract Latitude And Longitude From Coordinates"