Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Lookup up timezones for quadrangle areas #12

Open
ghost opened this issue Jun 15, 2017 · 0 comments
Open

Lookup up timezones for quadrangle areas #12

ghost opened this issue Jun 15, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 15, 2017

Right now, it's only possible to look up timezones for point locations.

It would be nice to be able to look up timezones for a rectangular area (e.g. a bounding box/quadrangle). I could see three possible interfaces for this:

  1. If the area is completely contained within a single timezone, return that timezone; if not, return "Etc/UTC".
  2. If the area is completely contained within a single timezone, return that timezone; if not, return whichever timezone has the most coverage within the area.
  3. Always return an array of all timezones covered by the location. (In the case of a point, this will always be a list of length 1; in the case of an area, the array will be of length >= 1.) If we want to be really nice, this list could be sorted by amount of coverage within an area.
@ghost ghost self-assigned this Jun 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

0 participants