https://github.com/logocomune/go-cq-zone
https://github.com/logocomune/go-cq-zone
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/logocomune/go-cq-zone
- Owner: logocomune
- License: mit
- Created: 2024-11-17T17:51:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T18:22:45.000Z (over 1 year ago)
- Last Synced: 2025-02-03T04:31:45.939Z (over 1 year ago)
- Language: Go
- Size: 934 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go CQ Zone Info Package


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