aloisdeniel / aloisdeniel/flutter_geocoder

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

Ouverte
#65 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Dart
Étoiles
192
Forks
182
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.