Skip to content

Add bbox support to API, fix station search with query#251

Merged
bkeepers merged 2 commits intomainfrom
api-bbox-support-v2
Mar 5, 2026
Merged

Add bbox support to API, fix station search with query#251
bkeepers merged 2 commits intomainfrom
api-bbox-support-v2

Conversation

@bkeepers
Copy link
Contributor

@bkeepers bkeepers commented Mar 5, 2026

This extracts the @neaps/tide-database from #220 and the @neaps/api changes from #249.

Add bbox query parameter to GET /stations for filtering stations by bounding box. Pass a comma-separated string minLon,minLat,maxLon,maxLat to return only stations within that geographic area.

Also allows reserved characters (e.g. commas) in the query parameter, enabling searches like "San Francisco, CA".

Bump @neaps/tide-database dependency to 0.7.

bkeepers and others added 2 commits March 5, 2026 06:14
Bump @neaps/tide-database from 0.6/* to 0.7 in neaps and cli packages.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add bbox query parameter to GET /stations endpoint
- Use bbox() from @neaps/tide-database 0.7 (takes [minLon, minLat, maxLon, maxLat] tuple)
- Add allowReserved to search query parameter for reserved characters like commas
- Add tests for bbox filtering, empty results, and invalid format

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bkeepers bkeepers marked this pull request as ready for review March 5, 2026 11:27
@bkeepers bkeepers merged commit 5dd9a73 into main Mar 5, 2026
12 checks passed
@bkeepers bkeepers deleted the api-bbox-support-v2 branch March 5, 2026 11:29
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