Implementation of the Mapbox Geocoding

Implements

Constructors

Properties

options: MapboxOptions = ...

Methods

  • Parameters

    • loc: Feature

    Returns { address: string; text: string }

  • 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<GeocodingResult[]>