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$
3

1 Answer 1

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$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .