Class FeatureCollectionSearchService

java.lang.Object
com.massifmaps.search.FeatureCollectionSearchService

public class FeatureCollectionSearchService extends Object
A search service for finding features from a specified feature collection.
  • Constructor Details

    • FeatureCollectionSearchService

      public FeatureCollectionSearchService(Projection projection, FeatureCollection featureCollection)
      Constructs a FeatureCollectionSearchService for given feature collection.
      Parameters:
      projection - The projection to use for the feature collection.
      featureCollection - The feature collection to search from.
  • Method Details

    • getProjection

      public Projection getProjection()
      Returns the projection of the feature collection of the search service.
      Returns:
      The projection of the feature collection of the search service.
    • getFeatureCollection

      public FeatureCollection getFeatureCollection()
      Returns the feature collection of the search service.
      Returns:
      The feature collection of the search service.
    • getMaxResults

      public int getMaxResults()
      Returns the maximum number of results the search service returns.
      Returns:
      The maximum number of results the search service returns.
    • setMaxResults

      public void setMaxResults(int maxResults)
      Sets the maximum number of results the search service returns.
      The default number of results is 1000.
      Parameters:
      maxResults - The new maximum number of results the geocoding service returns.
    • findFeatures

      public FeatureCollection findFeatures(SearchRequest request)
      Searches for the features specified by search request from the feature collection bound to the service.
      Parameters:
      request - The search request containing search filters.
      Returns:
      The resulting feature collection containing features matching the request.