Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added location and radius for places search #852

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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