NTVectorElementSearchService


@interface NTVectorElementSearchService : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A search service for finding vector elements from the specified vector data source. Depending on the datasource, searching may perform network requests and must be executed in non-UI background thread.

  • Constructs a VectorElementSearchService for the given vector data source.

    Declaration

    Objective-C

    - (id)initWithDataSource:(NTVectorDataSource *)dataSource;

    Parameters

    dataSource

    The vector data source to search from.

  • Returns the vector data source of the search service.

    Declaration

    Objective-C

    - (NTVectorDataSource *)getDataSource;

    Return Value

    The vector data source of the search service.

  • Returns the maximum number of results the search service returns.

    Declaration

    Objective-C

    - (int)getMaxResults;

    Return Value

    The maximum number of results the search service returns.

  • Sets the maximum number of results the search service returns. The default number of results is 1000.

    Declaration

    Objective-C

    - (void)setMaxResults:(int)maxResults;

    Parameters

    maxResults

    The new maximum number of results the geocoding service returns.

  • Searches for the vector elements specified by search request from the data source bound to the service. Depending on the data source, this method may perform slow IO operations and may need to be run in background thread.

    Declaration

    Objective-C

    - (NTVectorElementVector *)findElements:(NTSearchRequest *)request;

    Parameters

    request

    The search request containing search filters.

    Return Value

    The resulting list of vector elements matching the request.

  • Searches for the vector elements specified by search request from the data source bound to the service. Depending on the data source, this method may perform slow IO operations and may need to be run in background thread.

    Declaration

    Objective-C

    - (NTVectorElementVector *)findElementsSwigExplicitNTVectorElementSearchService:
        (NTSearchRequest *)request;

    Parameters

    request

    The search request containing search filters.

    Return Value

    The resulting list of vector elements matching the request.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;