Questions tagged [react-google-autocomplete]

10 questions
2
votes
1 answer

Restrict google places auto complete to only show residential addresses

I am building an application that makes use of the google places autocomplete API. For my use case I do not want to allow users to input things like businesses and points of interest - I only want to allow them to select residential addresses. I…
1
vote
0 answers

How i can use custom listview in react-native-google-places-autocomplete?

I have two autocompleteinputs but i want them to use same listview to look nicer. The app i am developing looks like lyft in lyft they use two text inputs in destination selection screen. How i can create autocompleteinput with custom list view? I…
1
vote
0 answers

react-google-autocomplete returns me a different language

I'm using a react-google-autocomplete and as you can see, autocomplete results are not english(US). Here's my codes ...} …
김일혁
  • 349
  • 1
  • 3
  • 9
0
votes
0 answers

google-autocomplete not working with shadcn-ui component `command`

I want to implement Google Place Autocomplete using the shadcn-ui command component in Next.js 13. I was following a tutorial on youtube https://youtu.be/BL2XVTqz9Ek?si=XfnVHs1BRhhL8_Nn. However, in this tutorial, the author uses @reach/combobox,…
0
votes
0 answers

React Native: undefined is not a function (onPress w/ GooglePlacesAutocomplete)

I am getting this error from the code below: undefined is not a function at screens/HomeScreen.js:38:42 in GooglePlacesAutocomplete.props.onPress at node_modules/react-native-google-places-autocomplete/GooglePlacesAutocomplete.js:270:25 in…
0
votes
0 answers

Would like to bias location results for Google Autocomplete on contact form

I am using Google Autocomplete plugin on Wordpress with contact form 7. I input the API from Google Cloud. I would really like to bias the results to a particular city and radius as explained here - https://www.youtube.com/watch?v=bv1p4s_d8OM I'm…
0
votes
0 answers

Testing Google Autocomplete in Jest react

I have a tricky situation over here. I have used an npm module:- use-places-autocomplete to get autocomplete suggestions from google maps autocomplete API. Below is the link for the npm module and the CDN link I am using in my react app in public…
0
votes
0 answers

react-google-autocomplete options not working

I am using react-google-autocomplete with react-hook-form: And when I try to add options parameters to the Component (which should filter my API predictions down to my country, and only cities, but it's clearly not working: const { register,…
0
votes
1 answer

react hook forms with react google autocomplete not showing selected value on first select

using react hooks form with react google autocomplete. Problem is on first selection, the react google autocomplete does not show the selected value, but just what the user types. Only if you select it the second time then it will say what you…
0
votes
1 answer

react-google-autocomplete dropdown not showing up on MUI Dialog

I am trying to build Address form dialog with Google places api. The problem is, when I use react-google-autocomplete's usePlacesWidget with MUI TextField, Google place dropdown menu is not showing up on Material UI Dialog. I have tried adding style…