Closed yaroslav-perec closed 1 year ago
Hi!
I'm trying to set types: ['(address)'] using usePlacesAutocompleteService like in the example below and it doesn't work, should it work? If yes, what am I doing wrong?
types: ['(address)']
usePlacesAutocompleteService
const { placesService, placePredictions, getPlacePredictions, isPlacePredictionsLoading } = usePlacesService({ apiKey: 'my_api_key', debounce: 200, options: { componentRestrictions: { country: 'au' }, types: ['(address)'], }, });
After some research everything seems to work, it's just that ['(address)'] is not a valid value for the "types" field
['(address)']
Hi!
I'm trying to set
types: ['(address)']
usingusePlacesAutocompleteService
like in the example below and it doesn't work, should it work? If yes, what am I doing wrong?