Get a boundary outline
https://idx.ruuster.com/v1/boundaries/{boundaryId}publishable or secret key · 1 unit · cached 3600 s
Get the outline of a neighborhood, county, ZIP area, school area or named place as GeoJSON, to draw under the pins on your map.
The outline of one area, simplified for drawing, with its name, kind and box. Search answers point
here in data.boundary.href whenever the search named an area with an outline.
What to know
- Ids come from suggest rows and search answers. An unknown id, or an area without an outline, answers
404
boundary_not_found. - The geometry is GeoJSON (
PolygonorMultiPolygon) with[longitude, latitude]points. AreaMapdraws it for you. Locations.
Path parameters
| Name | Type | Description |
|---|---|---|
boundaryId |
uuid | A boundary id (a uuid), from a /v1/suggest row's value or a search answer's boundary.id. |
Query parameters
This call takes no query parameters.
Response
The answer is { ok: true, data, meta }. These are the fields of data; meta carries brokerageId, freshness.asOf, mls (each board's display rules) and canonical.
| Field | Type | Description |
|---|---|---|
id |
string | The boundary id, as /v1/suggest or a search answer's boundary.id gives it. |
kind |
string (enum) | The kind of area the outline draws. One of neighborhood, county, postalCode, school, schoolDistrict, place, subdivision. |
name |
string | The area's name as the source spells it. |
state |
string or null | Two-letter state or province code; null when the source has none (ZIP areas). |
geometry |
object | GeoJSON, simplified to about 22 m (further when large): draw it as is. |
geometry.type |
string (enum) | Polygon. One of Polygon. |
geometry.coordinates |
array of array of array of number | The outer ring first, then any holes. |
viewport |
object | The outline's own box (feed it back as bbox to frame the map). |
viewport.south |
number | South latitude. |
viewport.west |
number | West longitude. |
viewport.north |
number | North latitude. |
viewport.east |
number | East longitude. |
source |
string (enum) | platform: a boundary /v1/suggest returns; library: a boundary-library area. One of platform, library. |
Errors
These are the error codes this endpoint can answer. Every error has the same body; Errors explains each code and what to show.
invalid_parameter, secret_key_in_url, invalid_credentials, missing_credentials, payment_required, access_revoked, brokerage_not_enabled, origin_not_allowed, origin_required, secret_key_in_browser, boundary_not_found, daily_quota_exceeded, rate_limited, internal_error, api_paused, source_unavailable