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

find_place: location_restriction parameter is not supported #464

Closed
FinnWoelm opened this issue Dec 23, 2022 · 4 comments
Closed

find_place: location_restriction parameter is not supported #464

FinnWoelm opened this issue Dec 23, 2022 · 4 comments
Assignees
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@FinnWoelm
Copy link

The Google Maps API now supports a locationrestriction parameter for Find Place requests, which can restrict results to a certain area. This is unlike the locationbias parameter, which prefers results in a certain area.

image

See: https://developers.google.com/maps/documentation/places/web-service/search-find-place#locationrestriction

@FinnWoelm FinnWoelm added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Dec 23, 2022
@wangela
Copy link
Member

wangela commented Dec 23, 2022

@FinnWoelm Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

@FinnWoelm
Copy link
Author

Thanks @wangela, I've taken a first stab at a PR: #465 ! Feel free to modify, of course :)

@wangela
Copy link
Member

wangela commented Jan 25, 2023

Hi @FinnWoelm, where's a Public Issue Tracker issue discussing location restriction in Find Place, and it turns out it is not supported. Documentation has been updated to remove the parameter (see googlemaps/openapi-specification#433) so I'll close this issue since the Python library is working as intended.

@wangela wangela closed this as completed Jan 25, 2023
@FinnWoelm
Copy link
Author

Ah, bummer I was really excited when I saw locationrestriction added to the docs 🙃 But thanks for letting me know 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants