-
Notifications
You must be signed in to change notification settings - Fork 44
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
Wrong query parameters #49
Comments
Hello @saikatharryc, That is right, you can use
For more, please checkout https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service?hl=fr#AutocompletionRequest |
@xuopled radius is not working. Here is code example:
The API call it makes doesn't have correct query parameters. Here is the URL:
It should have looked something like this:
|
It's very strange because, no transformation are applied before sending to Google Autocomplete API. |
@saikatharryc & @narayanprusty you can use "components" to restrict it to a specific country (up to 5 https://developers.google.com/places/web-service/autocomplete) if you don't necessarily want to specify the radius and/or direct location. Hopefully that helps while the bug is investigated /edit Apologies, it seems that no optional parameters are passed through |
Not sure if help is still needed, but I'm using a similar library (https://github.com/Giners/mui-places-autocomplete) and I ran into the same issue. If you refer to this documentation it says the I think you can refer to this other documentation if you call the mentioned API URL directly without using the |
i'm trying to get only nearby places in the search result, not the result from anywhere in the world.
i guess people are using
radious
option for that .here is one related stackoverflow topic.
can we do that using this package?
i'm using this in a large project.
The text was updated successfully, but these errors were encountered: