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

feat: add filter by geom for trees route #388

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

Conversation

dagmawig
Copy link
Contributor

fixes #387

image

@dagmawig
Copy link
Contributor Author

@dadiorchen I have added tree search based on polygon filter functionality. Please review and let me know if you have feedback.

@@ -135,4 +135,16 @@ describe('trees', () => {
},
1000 * 30,
);

it(
'trees?lat=39.0619&lon=-122.6064&lat=38.1519&lon=-123.3139&lat=37.8879&lon=-121.1001',
Copy link
Contributor

Choose a reason for hiding this comment

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

@dagmawig we need you the standard data format for this, which is the geojson, so you need to give a parameter like geojson following the protocol: https://geojson.org/

Copy link
Contributor

Choose a reason for hiding this comment

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

And also, postgresql recogonize geojson for example this: https://postgis.net/docs/ST_GeomFromGeoJSON.html

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.

Support filter tree by geo polygon
2 participants