Skip to content

A python script to find out Lattitude and Longitude of a place .

Notifications You must be signed in to change notification settings

abhishekbalam/geo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

geo

A python script to find out Lattitude and Longitude of a place .

I have a travel blog where I need to mention lattitude and longitude of places for the google maps js script to mark on the map section of the site..

I had initially used Geolocator API of google itself, but it has a query limit, which my site keeps on exceeding...

So I found these a useful python package called Geolocator in which I can use alternative geolocator APIs for free.

Also, since the YAML matter will have lat and lng as string and I might need to copy it from the terminal every time I use geo, so I added copy-to-clipboard functionality. Ive used Pyerclip.

Inputs:

$ geo Varanasi

Outputs:

	Lattitude: 25.3356491
	Longitude: 83.0076292
	Also copied to clipboard..

and when pasted, its in javascipt array format, ready to be parsed.

About

A python script to find out Lattitude and Longitude of a place .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages