Places FindPlace Bug - Field "url"

Đang mở
#456 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@wangela đang làm issue này rồi.

Từ ngày 19/4/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
118
Fork
94
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googlemaps/openapi-specification

Tất cả issue của googlemaps/openapi-specification

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.