Autocomplete prediction type fields should be optional #1106
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Hi,
The autocomplete response type currently lists
types
&place_id
as required properties:google-maps-services-js/src/places/autocomplete.ts
Line 148 in e6cd0e7
However according to the docs, these properties are optional:
https://developers.google.com/maps/documentation/places/web-service/autocomplete#PlacesAutocompleteResponse
This caught us off guard recently as we had queries that would not return
types
, such asRua ch 13
. However I'm not sure under what circumstances aplace_id
would not be returned. However I believe the types should accurately reflect the response returned.The text was updated successfully, but these errors were encountered: