CodeForPittsburgh / food-access-map-data

Data for the food access map
MIT License
8 stars 18 forks source link

Modify geocoder, add geocoder tests, and modify rtest.yml #78

Closed maxachis closed 3 years ago

maxachis commented 3 years ago

Previously, we ran into issues with automating geocoding through Github actions due to the R Mapbox API package requiring some libraries and modules that were difficult to properly install through Github Actions. These changes address that by removing the Mapbox API package entirely, and creating a function that calls the API directly through an HTTP request.

Two tests to evaluate the performance of the Geocoder -- whether through this version or an alternate geocoding version -- have been added as well.

Finally, the rtest.yml file has been added. It can now be manually called, and it can also pass the Mapbox API key from Github Secrets to the command line without risking public exposure of the API Key. The API Key will need to be added to the Github Repository Secrets for this to work, as MAPBOX_API_KEY.