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

Add sector search area #623

Merged
merged 3 commits into from
Sep 29, 2021
Merged

Add sector search area #623

merged 3 commits into from
Sep 29, 2021

Conversation

iwpnd
Copy link
Contributor

@iwpnd iwpnd commented Sep 5, 2021

I was looking for something to practice, was remembering #610 and tried it out in iwpnd/sectr. Thought I'd add it to Tile38 and test and it turns out it works as intended. :)

SET fleet truck POINT 52.4723248041 13.4072685242

Now you can search the fleet collection in a sector spanning an angle between a 0 and a 90 degree bearing and a radius of 1000.

sectr_plain_bg

WITHIN fleet SECTOR 52.46926612562814 13.40306282043457 1000 0 90

What do you think?

@tidwall
Copy link
Owner

tidwall commented Sep 7, 2021

Looks interesting. I hope to take it for a spin soon.

@tidwall tidwall merged commit c87fd48 into tidwall:master Sep 29, 2021
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.

2 participants