Skip to content

This script converts MAIDENHEADLOCATOR to LATITUDE and LONGTITUDE and calculates the distance.

License

Notifications You must be signed in to change notification settings

GFMsoft/calc_distance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

calc_distance

27.09.2021 - Ferdinand Marx - GFMSoft - www.GFMSOFT.de This script converts MAIDENHEADLOCATOR to LATITUDE and LONGTITUDE and calculates the distance. Result is rounded It uses the haversine formula. https://en.wikipedia.org/wiki/Haversine_formula

.:Information:.

  1. First you have to declare your own locator.
  2. For this example our own locator is IO94GC - see $ownlocator
  3. Leave $r and $mathpi as it is
  4. Just call the function "Calcdistance" with a Maidenheadlocator-String !MUST HAVE 6 Characters!

Example 1

MsgBox(64, "Info", "Distance to IO94GC is " & calcdistance("JN63EV") & " km !")

Example 2

Consolewrite("Distance is "& calcdistance("JN63EV") &" km."& @crlf)