react-native-google-places-autocomplete
react-native-google-places-autocomplete copied to clipboard
added location and radius for places search
If the user wants to search places within the restricted area using latitude and longitude and within the required radius I have added in the query so the user can pass these values as a props
location - lnt and lng string (ex. '2.232-3.343')
radius - number (ex. 2000)
@FaridSafi can you please review this PL and merge/publish it asap?
You can just overwrite query
directly in your code like so
query={{ key: 'YOUR_API_KEY', language: 'en', location: 'lat,lng', radius: 2000 }}