Skip to main content

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
  1. Download the latest version of GNAF core from https://geoscape.com.au/data/g-naf-core/
  2. Update the setup.yml file to point to the location of the GNAF core file
  3. 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


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.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

whereabouts-0.2.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file whereabouts-0.2.1.tar.gz.

File metadata

  • Download URL: whereabouts-0.2.1.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

Hashes for whereabouts-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2b2cdd46af7c165394860542bf21c293f2b29dd9a9dc09d02b198de57ddbef4a
MD5 366982709b9af2a4c2fa26cbc18b4e0c
BLAKE2b-256 f2aed664fbebe7208f98b92403f4f4eca97e590340466878cf604f6350451fc9

See more details on using hashes here.

File details

Details for the file whereabouts-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: whereabouts-0.2.1-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

Hashes for whereabouts-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d73156f2ef2d856d0f255670c99d10ed9c9df601faff6b2add4485bddd58f4d
MD5 2746d505e74dc5d596ff60e43c9243fd
BLAKE2b-256 482626eb0b12742def46497fc7054a63388e6c0d6efa77604c4a896c7c6e8e1b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page