Skip to content

feat: add query to look up captures near a particular lat lon#289

Open
gwynndp wants to merge 2 commits intoGreenstand:mainfrom
gwynndp:capture-location-query
Open

feat: add query to look up captures near a particular lat lon#289
gwynndp wants to merge 2 commits intoGreenstand:mainfrom
gwynndp:capture-location-query

Conversation

@gwynndp
Copy link
Copy Markdown
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
Copy Markdown
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.

@gwynndp gwynndp force-pushed the capture-location-query branch from 2c80be0 to 57387c8 Compare November 13, 2023 21:46
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.

1 participant