aloisdeniel / aloisdeniel/flutter_geocoder

[Question/Discussion] Can we have time zone from a given Coordinates, City Name or Country Code?

未关闭
#65 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
192
派生
182
PR 合并指标
30 天内没有已合并 PR

描述

For Example: If I search "Istanbul", `local()` will give us major address information i.e. `City`, `Country`, `Coordinates`.
What If we want to translate a query to a timezone? is it possible within the scope of this library?

>
Wiki: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Above wiki provide a list which also contains the `country code` field which relate to corresponding time zone.

From this library we can get country code so I was thinking that is it possible within this library to expose a `time zone` field using country codes.

Also, [timezone](https://pub.dev/packages/timezone) provide zone location using only the `zone name string` in `olson` format. [Tz Database Wiki](https://en.wikipedia.org/wiki/Tz_database) i.e. **'America/Detroit'**.

I am wondering if there is anyway we can translate simple city name or country codes to time zones. I think of a manual solution for my specific problem but if we could provide through a public dart library such as this.

Please advise.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。