/geocode_experiment

Primary LanguageElixirMIT LicenseMIT

GeocodeExperiment

This is a short throwaway project to geocode a list of addresses into lat/lng coordinates. It uses the GoogleMaps hex package to invoke the Geocoding API.

Building

First, make sure you've set your Google Maps API key as an environment variable at GOOGLE_MAPS_API_KEY.

mix compile
mix escript.build

Usage

./geocode_experiment addresses.txt

Where addresses.txt is a file of addresses with a single address per line. It outputs lat/lng coordinates for each address to standard out in the format lat,lng, with one coordinate per line.

License

This project is licensed under the MIT License.