1
$\begingroup$

Looking for some PHP code to convert decimal lat and long to maidenhead locator/grid square.

I saw one answer on here for the match, but I think there was an error in it so I can't trust it. I am happy to work with the math if a ready-made PHP function does not exist.

$\endgroup$
2
$\begingroup$

A quick google turned up https://gist.github.com/magicbug/bf27fc2c9908eb114b4a, if that's not the one you don't trust. Looks pretty straightforward to me, though.

Also found http://www.levinecentral.com/ham/grid_square.php; there's an email address at http://www.levinecentral.com/ham/ where you could inquire about the source.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.