Skip to content

Scripts to handle data taken from Geonames Database dumps

Notifications You must be signed in to change notification settings

MatteoAlberghini/geonames.scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GEONAMES SCRIPT

Geonames.scripts is a list of python scripts to handle geonames database dumps and make them usable and readable.

Installation

You'll need pandas to use most scripts.

pip install pandas

Usage

cd /scripts/

# geonames_to_json accepts 2 paramaters: input txt file and output json file (created if not existent)
python geonames_to_json NL.txt test.json

Utilities

To prettify a heavy JSON on windows, you can run:

type starting.json | python -mjson.tool > ending.json

Folders Description

The data folder contains backups of all the data used by me. They're just examples. To be sure to have the latest data you should be taking them from the Geonames website

The scripts folder contains all the scripts. Can be used with data from the data folder or with any data. See Usage for the paramaters.

License

MIT

About

Scripts to handle data taken from Geonames Database dumps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages