auchenberg / timey

A little tool to make timezones more human and easier to understand.
https://timey.in
107 stars 26 forks source link

Changed geocoding endpoint to avoid the google api limits. Added (dod… #27

Closed ilikejames closed 8 years ago

ilikejames commented 8 years ago

The google geocode api has a limit of 2500 requests per day and you've bumped over that a few times. I saw it referenced on your vscode video and wanted to check it out and it was failing on production so I made this hack to work around the usage limit. This pr uses timezonedb endpoint. It has a rate limit of 1 request per second, so I've added a retry with timeout on failure. It ain't a pretty solution :)

auchenberg commented 8 years ago

Aha, so that's why it sometimes failed ;)