Parsing and geocoding addresses for followthemoney entities powered by libpostal
Project description
ftm-geocode
Batch parse and geocode addresses from followthemoney entities. Simply geocoding just address strings works as well, of course.
There are as well some parsing / normalization helpers.
Features
- Parse/normalize addresses via libpostal
- Geocoding via geopy
- Cache geocoding results using anystore
- Optional fallback geocoders when preferred geocoder doesn't match
- Create, update and merge
Addressentities for ftm data
Quickstart
pip install ftm-geocode
Geocode an input stream of ftm entities with nominatim and google maps as fallback (geocoders are tried in the given order):
cat entities.ftm.ijson | ftmgeo geocode -g nominatim -g google > entities_geocoded.ftm.ijson
Documentation
https://docs.investigraph.dev/lib/ftm-geocode
Installation
Required external is libpostal, see installation instructions there.
Once libpostal is installed on your system, you can install:
pip install ftm-geocode[postal]
Testing
make install
make test
License and Copyright
ftm_geocode, (C) 2023 Simon Wörpel
ftm_geocode, (C) 2024-2025 investigativedata.io
ftm_geocode, (C) 2025 Data and Research Center – DARC
ftm_geocode is licensed under the AGPLv3 or later license.
Prior to version 0.1.0, ftm_geocode was released under the MIT license.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ftm_geocode-4.3.0.tar.gz.
File metadata
- Download URL: ftm_geocode-4.3.0.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.5 Linux/6.12.57+deb13-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f996c8538508deb9052b3092551e337938c565241f5f2e3444a35ff78eeee3a8
|
|
| MD5 |
564fe2d7a130516a5147bc153ac2287e
|
|
| BLAKE2b-256 |
48ac511bd5eb270c866d9f736b25f2c50e46dc6e137113342492f5707479edc9
|
File details
Details for the file ftm_geocode-4.3.0-py3-none-any.whl.
File metadata
- Download URL: ftm_geocode-4.3.0-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.5 Linux/6.12.57+deb13-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb841d9a634ea540cde2236db275bb82507cd1eb78c434e6405058cb07574d28
|
|
| MD5 |
d6c5c6bac9e0a2dedcdefe4b1efc09f2
|
|
| BLAKE2b-256 |
73a4e690addd0a612c87c02c329ab9251ff6c3293e5af8ac39195b5161c7ccc4
|