This script is run as a micro-service, apart from validating the input file, it verifies the addresses and fetches GEO coordinates for each row using API. The output of this tool is a CSV file, and this code removes all invalid rows.
Here are some examples of invalid rows:
- blank email, first and last name,
- blank residential or postal addresses,
- invalid location/postcode pair (residential or postal),
- cannot fetch GEO coordinates for a given row