No project description provided
Project description
Whereabouts
Fast, scalable geocoding for Python using DuckDB
Description
Geocode addresses and reverse geocode coordinates directly from Python in your own environment.
- No additional database setup required. Uses DuckDB to run all queries
- No need to send data to an external geocoding API
- Fast (Geocode 1000s / sec and reverse geocode 200,000s / sec)
- Robust to typographical errors
Currently only working for Australian data.
Requirements
- Python 3.8+
- Poetry (for package management)
Installation
Once Poetry is installed and you are in the project directory:
poetry shell
poetry install
- Download the latest version of GNAF core from https://geoscape.com.au/data/g-naf-core/
- Update the
setup.yml
file to point to the location of the GNAF core file - Finally, setup the geocoder. This creates the required reference tables
python setup_geocoder.py
Examples
Geocode a list of addresses
from whereabouts.Matcher import Matcher
matcher = Matcher(db_name='gnaf_au')
matcher.geocode(addresslist, how='standard')
For more accurate geocoding you can use trigram phrases rather than token phrases
matcher.geocode(addresslist, how='trigram')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
whereabouts-0.2.0.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file whereabouts-0.2.0.tar.gz
.
File metadata
- Download URL: whereabouts-0.2.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.14.0-1054-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d980a303ef6442684e352aff3541f4ffb11b998225015f07ed5fac54ab160fed |
|
MD5 | 7e54679869373064e6cb05476c02d984 |
|
BLAKE2b-256 | 7acb3cdd320a1cd72eaabcf4bdce09766ddb003ecf5fe4ae804e10b7592477ca |
File details
Details for the file whereabouts-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: whereabouts-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.14.0-1054-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac216cd395a4d5b3d18217b989e140dbb670b3b43f1152fa867249ef6725299 |
|
MD5 | d7643b3a1f0be487963e0ea947e9685b |
|
BLAKE2b-256 | 7edefb7334d969e6bb7fa52108d437e59a7f945070a2e3f4f98ab96a8f66a22b |