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

629: Limit Search to Philadelphia #683

Merged
merged 1 commit into from
Jun 7, 2024
Merged

629: Limit Search to Philadelphia #683

merged 1 commit into from
Jun 7, 2024

Conversation

jgrimes86
Copy link
Contributor

@jgrimes86 jgrimes86 commented Jun 7, 2024

This PR adds a bounding box and filter to the mapbox geocoder to limit search results to addresses located in Philadelphia.

The filter limits search results to items that have a place feature of 'Philadelphia' or a district feature of 'Philadelphia County'. The bounding box limits search results to a rectangular area around Philadelphia, PA so that the search doesn't return results from other places named Philadelphia, such as Philadelphia, Mississippi.

This closes issue #629

image

Copy link

vercel bot commented Jun 7, 2024

@jgrimes86 is attempting to deploy a commit to the Clean and Green Philly Team on Vercel.

A member of the Team first needs to authorize it.

@nlebovits
Copy link
Collaborator

Thanks @jgrimes86! @CodeWritingCow PR review?

Copy link
Collaborator

@CodeWritingCow CodeWritingCow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jgrimes86 I ran your code in my local environment, and it worked as intended. A search for "120 Walnut St" returns results from Philadelphia only. Searching for "Philadelphia, Mississippi" returns no results. Thanks for your contribution!

Screen Shot 2024-06-07 at 12 58 58 PM

@nlebovits nlebovits merged commit 13ad161 into CodeForPhilly:staging Jun 7, 2024
1 of 2 checks passed
@CodeWritingCow CodeWritingCow added enhancement New feature or request frontend labels Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants