geodata module
Sub-modules
Add alternate names for places using the Geonames.org Alternate names file
Command argument parser that throws exception rather than exitting
Maintain a cache of a dictionary using Python Pickle files
Provide a dictionary of all country names and ISO-2 codes
Provide SQLite database helper functions - insert, select, create tables and indices, etc
Example program for Geodata gazeteer.
Read a file and call a handler for each line. Update progress bar if present.
geoname database support routines. Add locations to geoname DB, create geoname tables and indices.
Provides a number of methods to lookup locations by name, feature, admin ID, etc.
Utilities
Provides a place lookup gazeteer based on files from geonames.org.
Provides the location lookup methods for the geodata package.
- Creates a local sqlite3 place database of geonames.org data
- Parses lookup text and returns multiple matches ranked by closeness to lookup term
+...
Build database for geonames.org data
Holds the details about a Location: Name,state/province, etc as well as the lookup results
Calculate a heuristic score for how well a result place name matches a target place name.
Provide functions to normalize text strings by converting to lowercase, removing noisewords.
This is used by the lookup functions and the database build functions and match scoring
noise_words is a list of replacements only used for match scoring
phrase_cleanup is a list of replacements for...
Example program for Geodata gazeteer.
Build database queries for various lookups