CHRTsearch
Find charted places by name. Free text in, a ranked list of named charted places out.
Every other geographic endpoint is addressed by space (/v1/features, /v1/query) or by identifier (/v1/cells). CHRTsearch is the one addressed by name.
GET https://api.chrt.co/v1/search?q=cuttyhunk&near=-70.93,41.42
x-api-key: YOUR_API_KEYQuery parameters
| Param | Type | Description |
|---|---|---|
| q | string | Required. 2–120 characters. Multi-word in any order — cutty harbor finds "Cuttyhunk Harbor Channel". Also matches colloquial buoy aliases such as red 16. |
| near | lon,lat | A ranking bias, never a filter. Adds distance_m and bearing_deg to each hit. |
| bbox | w,s,e,n | A hard spatial filter — "search only the chart I am looking at". |
| kind | string | place, object, or all (default). |
| layer | string | S-57 acronym. Repeatable, and comma-separated values are accepted. |
| limit | integer | Default 20, maximum 100. Over-large values are clamped and the clamp is echoed. |
| offset | integer | Default 0. |
Unknown parameters are rejected with a 400 that names them. An ignored filter returns a well-formed, plausible, wrong answer — on a chart API that is worse than an error. The error body always carries a parameter field, and an unknown parameter is reported before a missing one.
Response
{
"results": [
{
"name": "Cuttyhunk Harbor Channel",
"lon": -70.9271, "lat": 41.4238,
"bbox": [-70.9312, 41.4201, -70.9236, 41.4266],
"layer": "FAIRWY",
"kind": "place",
"class": "Fairway",
"rank": "primary",
"aliases": [],
"lnam": "0226283DBCEB1C8F",
"cell_id": "US5MA1DK",
"chart_source": "NOAA_ENC",
"edition": 12, "update_number": 3, "issue_date": "2025-11-04",
"scale": 12000, "scamin": null,
"distance_m": 412, "bearing_deg": 271.4,
"match": "all_words"
}
],
"total_count": 1,
"limit": 20,
"offset": 0,
"attribution": "Chart data from official ENCs issued by: NOAA.",
"disclaimer": "..."
}Fields worth reading twice
lon/latare guaranteed to lie inside real charted geometry carrying that name — never a bbox centroid, and never a polygon centroid, which can fall outside a concave area or inside a smaller feature within it. Safe to fly a camera to.bboxis the union of every charted instance, so a camera fit covers the whole place rather than one chart cell's slice of it. Degenerate for a point feature (west equals east), never null.kindis the load-bearing field.placemeans the name describes water or ground you can be in;objectmeans it describes a thing at a position. Branch on it before writing a name into a sentence about position — it is the difference between "you are in Nantasket Roads" and the nonsense "you are in Boston South Channel Buoy 11".- Data currency travels inline.
edition,update_number,issue_dateandcell_idare on every hit, so a result row renders without a per-hit/v1/cellscall. rankisprimaryorsecondary. Survey and utility descriptors — dredged-area names like "51-Foot Outer Harbor Confluence RIQ", pipelines, cables, recommended tracks — aresecondary. They stay fully searchable but never outrank a real place in the same match tier.
De-duplication is done for you
One row per place, not one per chart cell. Do not de-duplicate by LNAM. The same place carries a different LNAM in every cell that charts it — measured on production, "Vineyard Sound" has 25 instances with 25 distinct LNAMs — and occasionally one LNAM spans several cells. lnam is the handle for re-resolving a hit against /v1/features or CHRTinteract, not an identity for grouping.
Ranking
Documented, total, and deterministic — the same query returns the same first row every time.
matchtier:exact→prefix→all_words(any order) →substring→fuzzyrank:primarybeforesecondary- distance from
near, ascending - largest cell scale
lnam, as a stable final tiebreak
fuzzy is a fallback, not a supplement: those hits appear only when nothing matched at the four stricter tiers.
Pass near whenever you know where the user is
"Newport" is Rhode Island, Oregon and California. Measured on production, q=newport matches nine distinct places on BUAARE alone. near biases the order and never filters, so all nine stay reachable — but without it the first row is the wrong Newport most of the time.
Colloquial buoy names
A skipper says "red 16". The chart says "South River Buoy 16". Aids to navigation carry composed aliases built from the charted colour, shape and number, and q matches them at the same tiers as the name.
"South River Buoy 16" -> ["red 16", "r16", "red nun 16"]
"Red Brook Harbor South Channel Buoy 9" -> ["green 9", "g9", "green can 9"]Looking for a light? Do not filter to LIGHTS
Measured on production: LIGHTS holds 48,814 live features and 50 of them carry a name — 0.10%. The name of a light is charted on the co-located LNDMRK, BCNLAT or BOYLAT. Searching "Deer Island Light" without a layer filter finds it; filtering to LIGHTS finds nothing.
Normalisation
Applied identically to the stored name and to your q. Fold nothing yourself.
lowercase -> strip diacritics -> "&" to "and"
-> non-alphanumeric to space
-> st->saint pt->point mt->mount hbr->harbor harbour->harbor
"St. Mary's Harbour & Pt. Judith" -> "saint mary s harbor and point judith"Three different empty answers
They are not interchangeable, and conflating them is how a chart API tells a skipper something false.
- No match, in covered water —
200, emptyresults,total_count: 0, nocoverageblock. - Outside coverage —
200plus acoverageblock withcode: "outside_coverage". CHRT holds no charts at thenear/bboxyou gave. This can arrive with or without results: the notice is about the position, not about the list being empty, and a query can match places by name that are thousands of kilometres away. When results accompany it they matched by name only, and theirdistance_mis measured from water CHRT cannot chart. Never a statement that a place does not exist, and never a statement that the water is clear. - The search could not run — a non-2xx. Never an empty list.
Quotas and limits
CHRTsearch has its own allowance. It is not part of the /v1/features + /v1/query quota, and exhausting one does not affect the other. It is not gated by tier.
| Plan | Searches / month |
|---|---|
| Free | 100,000 |
| Dev | 250,000 |
| Pro | 1,000,000 |
| World | 2,000,000 |
| Enterprise | Unlimited |
One request is one unit, however many hits come back. Responses carry an ETag and Cache-Control, so a repeated keystroke costs nothing if you send If-None-Match. The edge burst limit for /v1/search is its own bucket, sized for a typeahead.
SDK
import { Chrt } from "@chrtco/sdk";
const chrt = new Chrt(process.env.CHRT_API_KEY!);
const { results } = await chrt.search({
q: "cutty harbor",
near: [-70.93, 41.42], // ranking bias — pass it whenever you know the position
kind: "place",
limit: 10,
});
for (const hit of results) {
console.log(hit.name, hit.class, hit.lon, hit.lat);
// "Cuttyhunk Harbor Channel" "Fairway" -70.9271 41.4238
}AI agents
The MCP server exposes this as chrt_search. It is the entry point to reach for first when an agent is handed a place name and no coordinates — every other tool requires a longitude and latitude, and guessing a bounding box for a name is a fabrication. See MCP Server.
For situational awareness only — not for primary navigation. CHRT is not an ECDIS and is not SOLAS-compliant.