GitXplorerGitXplorer
m

GeoTimeZone

public
236 stars
42 forks
5 issues

Commits

List of commits on branch main.
Verified
54371ac06fe76de3223318f66bfc3a9817770fa2

update ci build

mmattjohnsonpint committed 2 years ago
Verified
6fae285a190490f7365f0128f691712dd45b91f4

Bump version

mmattjohnsonpint committed 2 years ago
Verified
046abbb2b57f3f7789cc30b7eaea0c8b3bd55511

Create build.yaml

mmattjohnsonpint committed 2 years ago
Verified
04b78b956353617b4ad3ca686b29889c7fa2a478

Kyiv, not Kiev

mmattjohnsonpint committed 2 years ago
Verified
822cb14ee618608fc5936718e559ce59e501cd55

Create global.json

mmattjohnsonpint committed 2 years ago
Unverified
9c1d89951790738917adfeb2a31d40419c73a1a3

Update README.md

mmattjohnsonpint committed 2 years ago

README

The README file for this repository.

GeoTimeZone NuGet Version

Provides an IANA time zone identifier from latitude and longitude coordinates.

Nuget Installation

PM> Install-Package GeoTimeZone

Supported Environments

As of version 5.0.0, GeoTimeZone works with all of the following:

  • .NET 5 or greater
  • .NET Core 2.0 or greater
  • .NET Framework 4.6.2 and greater

Note that .NET Framework versions less than 4.6.2 are no longer supported.

Example Usage

string tz = TimeZoneLookup.GetTimeZone(50.4372, -3.5559).Result;  // "Europe/London"

Usage Notes

This library returns IANA time zone IDs. If you need a Windows time zone ID, pass the return value into the TimeZoneConverter library's TZConvert.IanaToWindows method, or to TZConvert.GetTimeZoneInfo to get a TimeZoneInfo object in a platform-neutral manner.

This library uses the time zone border definitions from the Timezone Boundary Builder project, which in-turn derive from Open Street Map. As some international borders are the subject of dispute, the results may or may not align with your worldview. Use at your own risk.

Acknowledgements

Huge thank you to the following people:

  • Evan Siroky, who tirelessly maintains the Time Zone Boundary Builder project, which we use for our source data.
  • Eric Muller, who authored the original tz_world data set (now deprecated in favor of TBB).
  • Simon Bartlett, who contributed all the polygon indexing and lookup bits to this library.
  • Sharon Lourduraj, who wrote GeoHash-net that we used for our original implementation.
  • David Troy, who wrote Geohash-js that Sharon later ported to .NET
  • Nick Johnson, who's excellent blog post has been an inspiration to this project and so many others!
  • Jonas Nyrup, who has helped with performance optimizations.

License

This library is provided free of charge, under the terms of the MIT license.