Geocode a list of addresses

whereami ●●○

Turn a text file of addresses into a CSV of cleaned-up street, city, postal code, and coordinates. One address per line in, one row per address out, ready for a spreadsheet or a map.

$ while read -r addr; do whereami "$addr" --json; done < addresses.txt | \ jq -r '[.address.street, .address.city, .address.postal_code, .latitude, .longitude] | @csv'
"350 5th Ave","New York","10118",40.7482378,-73.9850579 "1600 Pennsylvania Ave NW","Washington","20500",38.8976635,-77.036574 "1 Infinite Loop","Cupertino","95014",37.331656,-122.0301426
Requires: whereami 0.4+, jq