Feature Tree
FeatureTree is a class which stores FeatureCollections within an rtree which gives us faster spatial searching. The APIs are purely FeatureCollections - pass one in to create the tree and then call one of generateFeatureCollection, generateNearbyFeatureCollection or generateNearestFeatureCollection to return a FeatureCollection trimmed down by location.
Functions
generateFeatureCollection returns a FeatureCollection containing all of the features from within the rtree.
generateNearbyFeatureCollection returns a FeatureCollection containing all of the features within distance of the location provided
generateNearestFeatureCollection returns a FeatureCollection containing the nearest members of the rtree that are also within distance.
getNearestFeature returns a Feature that is the nearest member of the rtree that is also within distance.