Library API
    Preparing search index...

    Function mapQuery

    • Make a 'maps' request to the Google Geocoding API.

      Parameters

      • Optionalcoords: GeocoderRequest

        Coordinates to query

      • opts: MapOpts = ...

        Request options

      Returns Promise<GeocoderResponse & { error?: string }>

      A promise resolving to the geocoder response

      const res = await mapQuery({ location: { lat: 0, lng: 0 } });