CivicTechAtlanta / civic-social-app

https://codeforatlanta.github.io/civic-social-app/
0 stars 0 forks source link

Geocoding service confirmation + API token (from wbhob repo) #4

Open mapsandapps opened 7 years ago

mapsandapps commented 7 years ago

For initial proof of concept for geocoding, I used Mapbox's geocoding API + my own API token. We should confirm whether this is the best one to use, as opposed to other options like Google. It appeared to me that Mapbox's rate limits were better than Google's. Also, need to use a different API token than mine as I already use it for other projects.

alex-hall commented 7 years ago

Whatever you end up using you should definitely stray away from keeping tokens in the UI.

Best practice would be to run the geocode service call through a node call and inject the API token via an environment variable. Additionally, this would allow everyone to use their own API tokens in development but then use a secure token in Acceptance/Production.

If you need help with this let me know.