:round_pushpin: A python script to find out Lattitude and Longitude of a place .
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Abhishek Balam 2a3ea437a0 Spelling correction. 1 year ago
README.md Spelling correction. 1 year ago
geo Sat Jun 16 00:39:20 IST 2018 1 year ago

README.md

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 Pyperclip.

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.