[chirp_devel] [PATCH] Improve latitude/longitude entry
Brad Ackerman
Thu Mar 1 21:43:50 PST 2012
The attached patch adds support for a wider variety of
latitude/longitude input formats in the RFinder search dialog.
What should work:
dd mm.m N/S/E/W
dd mm ss.s N/S/E/W
with any separator between the fields, and with or without a separator
between the final group of digits and the direction.
The parsing code is currently extremely permissive. It doesn't complain
about seconds or minutes values greater than 60; it just adds them in
(so 45 90 N produces the same result as 46 30 N). Should it care?
I could see that decision going either way.
--
Brad Ackerman N1MNB PGP: 0x9F49A373
brad at facefault.org <*> http://bsa.smugmug.com/
--
Brad Ackerman N1MNB PGP: 0x9F49A373
brad at facefault.org <*> http://bsa.smugmug.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: better-latlong.diff
Type: text/x-patch
Size: 3164 bytes
Desc: not available
Url : http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20120302/6e94e5f2/attachment-0001.bin
More information about the chirp_devel
mailing list