view ZoneDetect.md @ 2901:ce889887354f

Avoid non-portable == for the test command The test command doesn't accept `==` as operator. It should be a single `=` for portable use. The `==` is a gnu extension. Note that the x-trick hasn't been needed for a long, long time. You can reliably write it with quotes: ``` if test "$gtk3" = yes; then ``` but I left that alone since it doesn't hurt other than being ugly.
author Rhialto The M <Rhialto@users.noreply.github.com>
date Sat, 06 Oct 2018 18:26:43 +0200
parents 8bab8ac8ade0
children
line wrap: on
line source

The detection of timezone is performed by
 [ZoneDetect](https://github.com/BertoldVdb/ZoneDetect)
 
 timezone16.bin has a longitude resolution of 0.0055 degrees (~0.5km).  
 timezone21.bin has a longitude resolution of 0.00017 degrees (~20m).
 
 The safe zone result indicates how close you are to the nearest border (flat earth model using lat and lon as x and y), so you can know when to do a new lookup. If you don't need it you can ignore it, in this case you can pass a NULL parameter to save the (very small) calculation effort.
 
 
 Note that the [underlying database](https://github.com/evansiroky/timezone-boundary-builder) will change from time-to-time.