openapi-specification
openapi-specification copied to clipboard
Places FindPlace Bug - Field "url"
Environment details
- Place FindPlace - NodeJS Client
- MacOS m1
- "@googlemaps/google-maps-services-js": "3.3.28"
Steps to reproduce
- Make a FindPlace call with fields
url
andphoto
as per documentation on https://developers.google.com/maps/documentation/places/web-service/search-find-place#Place
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.
If you would like to upvote the priority of this issue, please comment below or react with :+1: so we can see what is popular when we triage.
@Portur Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
- Check the issue tracker - bugs and feature requests for Google Maps Platform APIs and SDKs
- Open a support case - Get 1:1 support in Cloud Console.
- Discord - chat with other developers
-
StackOverflow - use the
google-maps
tag
This is an automated message, feel free to ignore.