FLUTTER ECOSYSTEM

shawnlauzon/latLngToTimezone

Dart 中的緯度/經度到時區映射器。無需網路服務或資料檔案

latLngToTimezone 專案封面
Stars
10
Forks
4
最近推送(UTC)
2022年8月11日
專案狀態
未封存
Shawn Lauzon GitHub avatar
GITHUB User

Shawn Lauzon ↗

語言Dart

此儲存庫發佈的套件

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

latLngToTimezone

Lat/long to timezone mapper in Dart. Does not require web services or data files

The "lat/long to timezone polygon mapping" is hardcoded, and we hope this rarely changes, but the changes to offsets and daylight savings changeover dates etc. (which are more frequent) are taken care of by your system libraries and so these are automatically kept up-to-date. From time to time, someone updates the files with the latest timezone polygons, but these rarely change...I think the most recent change is the Crimean peninsular.

This Dart library is port of the original project
available at https://github.com/drtimcooper/LatLongToTimezone. Ported it to Dart to make it easily available on pub.dev. In order to support updates from the upstream version, the formatting was changed as little as possible (specifically not adding control flow braces or truncating lines at 80 characters).

Usage

See the example at pub.dev.