Skip to content

added location and radius for places search#852

Open
yuvrajchaudhari03 wants to merge 1 commit intoFaridSafi:masterfrom
yuvrajchaudhari03:master
Open

added location and radius for places search#852
yuvrajchaudhari03 wants to merge 1 commit intoFaridSafi:masterfrom
yuvrajchaudhari03:master

Conversation

@yuvrajchaudhari03
Copy link

@yuvrajchaudhari03 yuvrajchaudhari03 commented Oct 31, 2022

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)

@yuvrajchaudhari03
Copy link
Author

@FaridSafi can you please review this PL and merge/publish it asap?

@VictorAny
Copy link

VictorAny commented Dec 27, 2022

You can just overwrite query directly in your code like so
query={{ key: 'YOUR_API_KEY', language: 'en', location: 'lat,lng', radius: 2000 }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants