Places FindPlace Bug - Field "url"

Offen
#456 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@wangela arbeitet bereits daran.

Seit 19.4.2023.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

triage me type: bug
Environment details
  1. Place FindPlace - NodeJS Client
  2. MacOS m1
  3. "@googlemaps/google-maps-services-js": "3.3.28"
Steps to reproduce
  1. Make a FindPlace call with fields url and photo as per documentation on https://developers.google.com/maps/documentation/places/web-service/search-find-place#Place

image

Code example
const foundplace = await GoogleMapsClient.findPlaceFromText({
                params: {
                    inputtype: 'textquery',
                    input: query.search_term,
                    key: GOOGLE_API_KEY,
                    fields: ['url'],
                }
            })
Stack trace
data: {
      candidates: [],
      error_message: "Error while parsing 'fields' parameter: Unsupported field name 'url'. ",
      status: 'INVALID_REQUEST'
    }

Also as a side note. The documentation on that page says photo field is part of basic fields type. However the table to indicate all the available fields shows photos as plural. Using photo or photos still returns photos successfully.

Vorherrschende Sprache
Keine Sprachdaten
Sterne
118
Forks
94
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus googlemaps/openapi-specification

Alle Issues in googlemaps/openapi-specification

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.