ftm-geocode
Batch parse and geocode addresses from FollowTheMoney entities
There are as well some parsing / normalization helpers.
Features
- Parse and normalize addresses via libpostal and rigour
- Geocoding via geopy
- Cache geocoding results using anystore
- Optional fallback geocoders when preferred geocoder doesn't match
- Create, update and merge
Address
entities 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