Converting between Maidenhead locator (used in amateur radio) and latitude/longitude, and calculating of distance and bearing.
This class provides methods for converting between Maidenhead Locators and Latitude/Longitude in degrees as well as for calculating the distance and bearing between two positions. This type of locator is mainly used in amateur radio and sometimes also called “QRA locator”.
This class is based on a Perl module by Dirk Koopman, G1TLH.
Compatibility: Version 2.0 or newer
Maidenhead-Locator-Berechnung in Pascal? Weiter zur Locator-Entfernungsberechnung…
Der folgende Beispielcode zeigt, wie die Entfernung zwischen zwei Locator-Angaben berechnet werden kann:
string homeLoc = "JN59MN"
string destLoc = "JO63DH"
// Compute distance [km] and direction [°]
double distance = MaidenheadLocator.Distance(homeLoc, destLoc);
double azimuth = MaidenheadLocator.Azimuth(homeLoc, destLoc);
// Convert locator to latitude/longitude
LatLong homeLL = MaidenheadLocator.LocatorToLatLong(homeLoc);
// Convert latitude/longitude to locator
string myLoc = MaidenheadLocator.LatLongToLocator(49.57, 11.08);
Was that helpful?
Was the information on this page helpful to you? Did it come in handy right now? If you appreciate it, then I’d be happy if you could begin your shopping on Amazon.de with the link on this website next time (also available to the left of each page). You might also tell others about your findings by using the Google +1 button or publishing or sharing a link to this page elsewhere.
Found a bug?
Should you have any questions using this source code, or in case you found a bug in it, please just drop me an e-mail so I can quickly respond and help you out.
This software is released under the terms of the simplified BSD licence. You can find the detailed terms and conditions in the download.
- Created on 2007-04-02, updated on 2011-08-04.
- First used in ARLog: Amateur Radio Logbook.
- Ca. 100 lines of code, estimated development costs: 100 - 400 €