Prototyping of projection conversion & spatial indexing routines.
Rough work in progress, but just to cover the bases, some of the formulas are borrowed from Leaflet.
- Figure out how
MKMapPoint
is setup - projected meters/map point/coordinate translations
- scale/zoom translations
- pixel width for zoom
- meters/pixel at given latitude & zoom
- Spherical Mercator
-
Mercator (ellipsoid) -
CGPoint
/coordinate translations - distance formulas
- Spherical Cosines
- Haversine
- Apple/Core Location passthrough
- nearest neighbor
- Apple/Core Location passthrough
- S2
- R-Tree
- Quad tree
- rotation transforms