Abstract base class representing a search provider. It builds upon the BaseGeocoder functionalities with provider-specific properties.

Hierarchy (view full)

Constructors

Properties

label?: string

Label to represent the provider. Useful for user interfaces to display the source of search results.

searchResources: SearchResource[] = []
searchUrl?: string

URL endpoint for the search service. This is where queries will be sent to obtain search results.

limit: number = 300

Methods

  • Method for reverse geocoding. Takes coordinates and returns the corresponding address or location information.

    Parameters

    • coordinates: LngLatArray

      The longitude and latitude values.

    Returns AsyncGenerator<SearchItem, void, unknown>

    An async generator that yields reverse geocoding results.

  • Search method to retrieve geocoding results.

    Parameters

    • query: string

      The search string to geocode.

    Returns AsyncGenerator<NgwSearchItem, void, unknown>

    An async generator that yields search results.

MMNEPVFCICPMFPCPTTAAATR