maxlemieux / quokka

Project 3 "Quokka"
MIT License
0 stars 2 forks source link

Connect Zip Code API to trefle lookups #36

Closed maxlemieux closed 4 years ago

maxlemieux commented 4 years ago

We have code to get the zip code of an IP address, however it's not being used (we feed a dummy zip code to Trefle still).

We need to include this function where we call Trefle with a zip code, and use it to get the current visitor's zip code (and thus, climate zone and minimum temperature required for the Trefle species search).

maxlemieux commented 4 years ago

This is now done in master - we look up the zip code using Maxmind GeoIP data, then pass it to Frostline API to get a minimum temperature range, then pass the lower end of that range to Trefle.