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 query to look up captures near a particular lat lon #289

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gwynndp
Copy link
Collaborator

@gwynndp gwynndp commented Mar 10, 2023

The user can now query and endpoint on the Query API to get the captures within a certain distance of a particular latitude and longitude.

Example:
/v2/captures/location?lat=38.365171398&lon=-122.511260162&deviation=0.02

Should return 36 captures from user gwynn

NOTE:

  • I originally tried to include the ability to query by session id but the knex syntax is conflicting with the raw SQL syntax

@gwynndp
Copy link
Collaborator Author

gwynndp commented Mar 10, 2023

@ZavenArra @Kpoke Hopefully this will help with the data-crunching. Please let me know if there are any changes.

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.

None yet

1 participant