here-cli
here-cli copied to clipboard
geocode address fields in CSVs
If a CSV has an address field, use the HERE CLI geocoder to add a latitude and longitude to the feature as we upload it to XYZ.
here xyz upload -f addresses.csv -g address_field
We should also look at other properties returned by the geocoder to see what might be useful to add as a properties, including MatchType and MatchQuality. We should also add the admin hierarchy as properties (maybe within an object?)
If the geocode fails, we should tag the the record as geocode_failed.
In data from local GIS systems, it's common for just the street address to be listed with no city or region or country -- we may want to consider allowing the user to append a relevant string, aka "San Francisco, CA, USA" to "1234 Mission St" insure more accurate results, rather than making the geocoder guess or return the first street address that it finds in the world.
here xyz upload -f addresses.csv --append-locale "San Francisco, CA"
Addresses may also be broken into columns (house number, street, city, region, country) -- we could handle that with commas:
here xyz upload -f addresses.csv -g house_number_column,street_name_column,city_column,region_column,state_column