Skip to content

Places FindPlace Bug - Field "url" #456

@Portur

Description

@Portur

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.

Metadata

Metadata

Assignees

Labels

triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions