Skip to content

Add bbox search#67

Merged
bkeepers merged 1 commit intomainfrom
bbox
Mar 2, 2026
Merged

Add bbox search#67
bkeepers merged 1 commit intomainfrom
bbox

Conversation

@bkeepers
Copy link
Contributor

@bkeepers bkeepers commented Feb 23, 2026

You can find all stations within a geographic bounding box using the bbox function:

import { bbox } from "@neaps/tide-database";

// Find stations in the Boston area
const stations = bbox(-71.5, 42, -70.5, 42.8);
console.log("Stations in bounds:", stations.length);

// With a filter
const referenceOnly = bbox(-72, 41, -70, 43, (station) => station.type === "reference");

@bkeepers bkeepers merged commit 7cba576 into main Mar 2, 2026
3 checks passed
@bkeepers bkeepers deleted the bbox branch March 2, 2026 23:59
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