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).
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.
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).