GeoNamesTools
Library and CLI tool to use data from GeoNames.org
CLI
For now it can process in a simple way the cities data(for example cities-1000) and transfer data to a sqlite DB.
More features to come!
Example Usage:
The line above transfers the data in the test_file present in test_cities.txt to the database test.db (creating it, if it does not exist).
Library
For now it has the two components
parser;
write_sqlite;
Example:
extern crate geonames;
use parser;
use write_sqlite;
let input: PathBuf = "./test_data/test_cities.txt";
let output: PathBuf = "output.db";
let mut parser = new; // Creates the new parser
parser.parse.expect; // Feeds the test data to the parser
write_sqlite.expect; // Writes the read data to the SQLite DB
License
MIT or Apache-2.0