NTVectorTileSearchService


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

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

  • Constructs a VectorTileSearchService for the given vector data source and vector tile decoder.

    Declaration

    Objective-C

    - (id)initWithDataSource:(NTTileDataSource *)dataSource
                 tileDecoder:(NTVectorTileDecoder *)tileDecoder;

    Parameters

    dataSource

    The vector data source to search from.

    tileDecoder

    The vector tile decoder to use for decoding the tiles.

  • Returns the tile data source of the search service.

    Declaration

    Objective-C

    - (NTTileDataSource *)getDataSource;

    Return Value

    The tile data source of the search service.

  • Returns the tile decoder used by the search service.

    Declaration

    Objective-C

    - (NTVectorTileDecoder *)getTileDecoder;

    Return Value

    The tile decoder used by the search service.

  • Returns the minimum zoom level of vector tiles used. By default the minimum zoom level is specified by data source and is usually 0.

    Declaration

    Objective-C

    - (int)getMinZoom;

    Return Value

    The minimum zoom level of vector tiles used.

  • Sets the minimum zoom level of vector tiles used.

    Declaration

    Objective-C

    - (void)setMinZoom:(int)minZoom;

    Parameters

    minZoom

    The new minimum zoom level.

  • Returns the maximum zoom level of vector tiles used. By default the maximum zoom level is specified by data source.

    Declaration

    Objective-C

    - (int)getMaxZoom;

    Return Value

    The maximum zoom level of vector tiles used.

  • Sets the maximum zoom level of vector tiles used.

    Declaration

    Objective-C

    - (void)setMaxZoom:(int)maxZoom;

    Parameters

    maxZoom

    The new maximum zoom level.

  • 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 features specified by search request from the vector tiles bound to the service. The zoom level range used for searching is specified using minZoom/maxZoom attributes of the search 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

    - (NTVectorTileFeatureCollection *)findFeatures:(NTSearchRequest *)request;

    Parameters

    request

    The search request containing search filters.

    Return Value

    The resulting feature collection containing features matching the request.

  • Searches for the features specified by search request from the vector tiles bound to the service. The zoom level range used for searching is specified using minZoom/maxZoom attributes of the search 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

    - (NTVectorTileFeatureCollection *)
        findFeaturesSwigExplicitNTVectorTileSearchService:
            (NTSearchRequest *)request;

    Parameters

    request

    The search request containing search filters.

    Return Value

    The resulting feature collection containing features matching the request.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;