zlacker

[return to "Show HN: A Simple Server to Match Long/Lat to a TimeZone"]
1. kevmo3+f2[view] [source] 2025-05-20 22:00:55
>>ChrisM+(OP)
Since the geojson for the timezone data is a static file you can avoid using a database entirely and ship it to your app.

If you'd like to avoid shipping a giant geojson, with the generosity of CDN providers you can actually hit the npm-hosting servers with HTTP Range requests and do this completely on demand from the client: https://github.com/kevmo314/browser-geo-tz

◧◩
2. edoceo+78[view] [source] 2025-05-20 22:52:40
>>kevmo3+f2
How should we get right bits by range? Wouldn't we get chunks of JSON that aren't delimited nicely?
[go to top]