Restrict Google Places Autocomplete to return addresses only
This question is old, but I figured I’d add to it in case anyone else is having this issue. restricting types to ‘address’ unfortunately does not achieve the expected result, as routes are still included. Thus, what I decided to do is loop through the result and implement the following check: result.predictions[i].types.includes(‘street_address’) Unfortunately, I was … Read more