- Country name
- Country code
- Language code
- Time zone offset in minutes (UTC)
- Time zone name
- [-] Europe
- Russia
- Ukraine
- Belarus
- Asia
- America
- Okeania
- Africa
detector := locationdetector.NewLocationDetector()
location, err := detector.DetectByCoordinates(32.84341, 45.59074)
if err != nil {
log.Fatalln(err)
}
fmt.Printf(
"Country %s/%s\nLanguage: %s\nTimezone: %s (%d)\n",
location.CountryName,
location.CountryCode,
location.LanguageCode,
location.TimezoneName,
location.TimezoneOffset,
)