{"id":19715914,"url":"https://github.com/logocomune/maidenhead","last_synced_at":"2025-06-14T21:32:47.443Z","repository":{"id":57654041,"uuid":"453465132","full_name":"logocomune/maidenhead","owner":"logocomune","description":"This golang library compress and decompress latitude and longitude coordinates into Maidenhead locator ","archived":false,"fork":false,"pushed_at":"2024-06-16T08:50:14.000Z","size":14,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T20:39:42.269Z","etag":null,"topics":["go","golang","golang-library","hamradio","latitude-and-longitude","maidenhead-grid-locators","maidenhead-locator","radioamateur"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logocomune.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-29T17:17:01.000Z","updated_at":"2024-09-06T05:23:17.000Z","dependencies_parsed_at":"2022-08-26T06:42:10.520Z","dependency_job_id":"28bfad8a-5e63-4ab8-b4b3-ef206aa9b3cd","html_url":"https://github.com/logocomune/maidenhead","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/logocomune/maidenhead","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logocomune%2Fmaidenhead","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logocomune%2Fmaidenhead/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logocomune%2Fmaidenhead/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logocomune%2Fmaidenhead/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logocomune","download_url":"https://codeload.github.com/logocomune/maidenhead/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logocomune%2Fmaidenhead/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259887343,"owners_count":22926913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","golang-library","hamradio","latitude-and-longitude","maidenhead-grid-locators","maidenhead-locator","radioamateur"],"created_at":"2024-11-11T22:39:45.347Z","updated_at":"2025-06-14T21:32:47.414Z","avatar_url":"https://github.com/logocomune.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maidenhead Locator for golang\n\n\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/logocomune/maidenhead)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/logocomune/maidenhead/go.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/logocomune/maidenhead)](https://pkg.go.dev/github.com/logocomune/maidenhead)\n[![codecov](https://codecov.io/gh/logocomune/maidenhead/graph/badge.svg?token=GGN3PHjyZV)](https://codecov.io/gh/logocomune/maidenhead)\n[![Go Report Card](https://goreportcard.com/badge/github.com/logocomune/maidenhead)](https://goreportcard.com/report/github.com/logocomune/maidenhead)\n\nThe [Maidenhead Locator System](https://en.wikipedia.org/wiki/Maidenhead_Locator_System)\n(a.k.a. QTH Locator and IARU Locator) is a geocode system used by amateur radio operators\nto succinctly describe their geographic coordinates.\n\nThis Golang library compresses and decompresses (latitude, longitude) coordinates to and\nfrom a Maidenhead locator.\n\n## Installation\n\n```console\ngo get -u github.com/logocomune/maidenhead\n```\n\n## Usage\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/logocomune/maidenhead\"\n)\n\nfunc main() {\n\tlatitude := 43.723073\n\tlongitude := 10.396637\n\n\tlocator, _ := maidenhead.Locator(latitude, longitude, maidenhead.FieldPrecision)\n\tfmt.Println(\"Locator with field precision:\", locator)\n\tlocator, _ = maidenhead.Locator(latitude, longitude, maidenhead.SquarePrecision)\n\tfmt.Println(\"Locator with square precision:\", locator)\n\tlocator, err := maidenhead.Locator(latitude, longitude, maidenhead.SubSquarePrecision)\n\tfmt.Println(\"Locator with sub square precision:\", locator, err)\n\tlocator, _ = maidenhead.Locator(latitude, longitude, maidenhead.ExtendedSquarePrecision)\n\tfmt.Println(\"Locator with extended square precision:\", locator)\n\tlocator, _ = maidenhead.Locator(latitude, longitude, maidenhead.SubExtendedSquarePrecision)\n\tfmt.Println(\"Locator with sub extended square precision:\", locator)\n\n\tlat, lng, _ := maidenhead.GridCenter(\"JN53er73OM\")\n\tfmt.Printf(\"Grid center of %s is lat: %f and lng: %f\\n\", \"JN53er73OM\", lat, lng)\n\n\tsquare, _ := maidenhead.Square(\"JN53er73OM\")\n\tfmt.Printf(\"Square coordinates of %s are %+v\\n\", \"JN53er73OM\", square)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogocomune%2Fmaidenhead","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogocomune%2Fmaidenhead","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogocomune%2Fmaidenhead/lists"}