GitXplorerGitXplorer
m

GeoTimeZone

public
236 stars
42 forks
5 issues

Commits

List of commits on branch main.
Verified
deb5e6cc31430445bab4694c28f76ea98cf6c9ee

Bump version to 5.3.0

mmattjohnsonpint committed a year ago
Verified
7b983f4f14427c32f794d0da14b200fea3f000a2

Add readme to nuget package

mmattjohnsonpint committed a year ago
Verified
b35ada82d093d5fd28f311704d1b2d754e11992e

Merge pull request #61 from baharedankoyuncu/main

mmattjohnsonpint committed 2 years ago
Unverified
9d80335faa15f23be293b557965f8ebbffd0370b

Add updated data files

bbaharedankoyuncu committed 2 years ago
Unverified
597b09a5d703b1115aaaae92a3fe16f73808e4a7

Update data definitions to 2023b

bbaharedankoyuncu committed 2 years ago
Verified
0ca328e93ff8a63ad312984f56e1d7fcbaaa92b8

Bump version

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.