Implementation of the Nominatim geocoder.

This is the default geocoding service used by the control, unless otherwise specified in the options.

Unless using your own Nominatim installation, please refer to the Nominatim usage policy.

Implements

Constructors

Properties

Methods

Constructors

Properties

options: NominatimOptions = ...

Methods

  • Performs a reverse geocoding query and returns the results as promise

    Parameters

    • location: LatLngLiteral

      the coordinate to reverse geocode

    • scale: number

      the map scale possibly used for reverse geocoding

    Returns Promise<
        {
            bbox: LatLngBounds;
            center: LatLng;
            html: undefined
            | string;
            name: string;
            properties: NominatimResult;
        }[],
    >