https://github.com/logocomune/go-itu-zone
This repository contains a Go package to retrieve information about ITU Zones (International Telecommunication Union Zones)
https://github.com/logocomune/go-itu-zone
go golang golang-library hamradio itu-zone
Last synced: about 1 year ago
JSON representation
This repository contains a Go package to retrieve information about ITU Zones (International Telecommunication Union Zones)
- Host: GitHub
- URL: https://github.com/logocomune/go-itu-zone
- Owner: logocomune
- License: mit
- Created: 2024-11-17T14:58:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T18:23:39.000Z (over 1 year ago)
- Last Synced: 2025-02-03T04:31:46.493Z (over 1 year ago)
- Topics: go, golang, golang-library, hamradio, itu-zone
- Language: Go
- Homepage:
- Size: 518 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go ITU Zone Info Package


[](https://pkg.go.dev/github.com/logocomune/go-itu-zone)
[](https://codecov.io/gh/logocomune/go-itu-zone)
[](https://goreportcard.com/report/github.com/logocomune/go-itu-zone)
This repository contains a Go package to retrieve information about ITU Zones (International Telecommunication Union
Zones) using geographic coordinates (latitude and longitude) or the ITU Zone number.
## Features
**Search by coordinates**: Get the ITU Zone corresponding to specific geographic coordinates.
**Search by ITU Zone number**: Retrieve details about an ITU Zone by its identifier number.
## Installation
```console
go get github.com/logocomune/go-itu-zone
```
## Usage
```golang
package main
import (
"fmt"
"github.com/logocomune/go-itu-zone"
)
func main() {
ituZone, found := ituzone.GetZoneByCoordinate(ituzone.Coordinate{Lat: 43.71, Lng: 11.75})
if !found {
fmt.Println("Zone not found")
}
fmt.Println("ITU Zone: ", ituZone.Number)
fmt.Printf("ITU Zone Infos: %+v\n", ituZone.Infos)
fmt.Printf("ITU Zone Center: %+v\n", ituZone.Center)
fmt.Printf("ITU Zone GeoJSON: %+v\n", ituZone.GeoJSON)
}
```
## Acknowledgments
Special thanks to @HB9HIL for providing the GeoJSON files of ITU Zones via their repository: hamradio-zones-geojson.
## License
This project is distributed under the MIT License. See the LICENSE file for more details.