9.3
PRCoords for Racket
| (require prcoords) | package: prcoords |
A Typed Racket port of People’s Rectified Coordinates: the GCJ-02 and BD-09 obfuscations of Chinese map coordinates, along with the Caijun refinement for the inverses.
Coordinates are latlon structs holding Flonums in degrees. The transforms are wgs-gcj, gcj-wgs, gcj-bd, bd-gcj, wgs-bd and bd-wgs; each has a * variant that takes an explicit China check, and the -bored procedures run ten rounds of the Caijun fixed-point refinement.
A point in degrees.
procedure
(latlon-compare a b) → exact-integer?
a : latlon b : latlon
Returns -1, 0 or 1 as a sorts before,
equal to or after b, by latitude then longitude.
True when a sorts before b.
True when a sorts after b.