Library API
    Preparing search index...

    Function mapAddress

    • Query google-maps for a best-guess address at supplied {lat,lng} coordinates.

      Parameters

      • Optionalcoords: GeocoderRequest

        Optional coordinates; defaults to current location

      • opts: MapOpts = ...

        Request options

      Returns Promise<Record<string, string | string[]> | null>

      A promise resolving to the best-guess address object

      const address = await mapAddress();