Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jleh/qth-locator
Operations with Maidenhead locator system
https://github.com/jleh/qth-locator
maidenhead maidenhead-locator qth
Last synced: about 2 months ago
JSON representation
Operations with Maidenhead locator system
- Host: GitHub
- URL: https://github.com/jleh/qth-locator
- Owner: jleh
- License: mit
- Created: 2019-06-21T13:50:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T14:49:18.000Z (7 months ago)
- Last Synced: 2024-11-08T20:07:38.363Z (about 2 months ago)
- Topics: maidenhead, maidenhead-locator, qth
- Language: JavaScript
- Homepage:
- Size: 2.01 MB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qth-locator
Operations with [Maidenhead locator system](https://en.wikipedia.org/wiki/Maidenhead_Locator_System)
## Usage
```javascript
const { locatorToLatLng, distance, bearingDistance, latLngToLocator } = require('qth-locator');locatorToLatLng('IO91wm'); // [51.521, -0.125]
distance('IO91wm', 'KP20le'); // 1821.5 km
bearingDistance('FN20qr', 'KP21ol') // 6586.72 km, 49.16 degrees
latLngToLocator(60.179, 24.945) // KP21le
```## License
MIT