パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.2.0

lat_lng_to_timezone

Dartでの緯度経度からタイムゾーンへのマッパー。Webサービスやデータファイルは不要

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.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト