@cercalia/sdk
    Preparing search index...

    Class PoiService

    PoiService - Points of Interest search using Cercalia API

    Supports multiple search modes:

    • Nearest POIs by straight-line distance (cmd=prox)
    • Nearest POIs with routing (cmd=prox with weight)
    • POIs along a route (cmd=geom)
    • POIs inside a map extent (cmd=map)
    • POIs inside a polygon (cmd=prox with wkt)
    • Weather forecast (cmd=prox with D00M05 category)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Configuration for the Cercalia API connection.

    Methods

    • Executes a generic request to the Cercalia API.

      Type Parameters

      • T

      Parameters

      • params: Record<string, string>

        Query parameters for the API request.

      • operationName: string = 'Cercalia Request'

        Human-readable name for logging and debugging.

      • OptionalbaseUrl: string

        Optional override for the base API URL.

      Returns Promise<T>

      A promise resolving to the parsed API response.

      Error with code '30006' when no results are found.

      Error for HTTP errors or invalid JSON responses.

      const response = await this.request<MyResponse>(
      { cmd: 'cand', adr: 'Gran Via 1' },
      'Geocoding'
      );