搜尋套件、儲存庫與 APP 分類

套件詳情v0.2.0

lat_lng_to_timezone

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

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2.3萬
喜歡數
25
Pub 分數
150

安裝套件

flutter pub add lat_lng_to_timezone

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Dart 套件,可將緯度和經度座標轉換為對應的時區,不依賴外部網路服務或資料檔案。它使用內建邏輯根據地理位置判斷時區,非常適合離線應用。此套件輕巧且高效,適用於需要從位置資料中準確偵測時區的應用程式。支援所有主要平台,包括行動裝置、Web 和桌面。

適用情境

  • 離線時區偵測
  • 基於位置的應用功能
  • 旅行或排程應用
  • 時間區域感知的資料處理
  • 即時位置追蹤

主要特色

  • 無外部依賴
  • 離線工作
  • 跨平台支援
  • 精確的時區對應
  • 輕量且快速

適合對象

  • 行動與網頁應用程式
  • 需要隱私的應用
  • 離線優先的應用程式
  • 地理位置工具
  • 開發者避免 API 呼叫

使用建議

  • 限於已知的時區邊界
  • 可能無法反映近期的政治變動
  • 不自動處理夏令時
  • 準確性取決於內部資料精度
  • 不適合用於高精度地理空間分析

原始 README

以下為關聯原始碼儲存庫的 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.

所屬分類

原始碼儲存庫

使用此套件的專案