react-native-google-autocomplete: Location or radius does not work

Location or radius does not work… @EQuimper, could you tell me what I’m doing wrong? <GoogleAutoComplete apiKey={API_KEY} debounce={500} minLength={3} language="es" queryTypes="establishment" location="37.1848024, -5.7753099" radius="35000" components="country:es" >

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

According to the Places API:

Location restrict You may also restrict results to the region defined by location and a radius parameter, by adding the “strictbounds” parameter. This instructs the Place Autocomplete service to return only results within that region.

Otherwise, you would get only prefered result by location and radius but not restricted by the area.

I will try to make PR

Has this been fixed? Sorry to be a pain this is a vital part of the API though

@JorgeMoralesLopez the version 0.1.6 was just a fix for radius. I’m currently working on the location right now