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.