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

Restrict search to dataset boundaries #35

Open
Leland opened this issue Dec 27, 2023 · 1 comment
Open

Restrict search to dataset boundaries #35

Leland opened this issue Dec 27, 2023 · 1 comment

Comments

@Leland
Copy link
Contributor

Leland commented Dec 27, 2023

Follow up to #33, this is a site whose address searching is constrained to the datasets' boundaries – in essence, if an address is provided which is outside of Chicago, there probably ought to be an error.

This would also need to be extended to the "find me" feature.

@derekeder
Copy link
Member

in cartodb_lib.js we append chicago to all searches if it is not typed in. this seems to handle most cases: https://github.com/datamade/second-city-zoning/blob/main/js/cartodb_lib.js#L7

i think back when i wrote this code (about 10 years ago) i tried configuring the scope with Google Places Autocomplete but couldn't get it to work. open to other suggestions though!

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

No branches or pull requests

2 participants