turf-swift
turf-swift copied to clipboard
RBush Swift port
For Performance purposes, we need to perform a quick search for geometries with given attributes. For example it is useful for LineString.intersections
implementation. Spatial indexing would provide a performant option to do that.
We cannot rely on Apple's implementations because that won't work for non-apple platforms. So the easiest option so far is to provide swift port of existing Javascript implementation RBush.