Get a saved shape
https://idx.ruuster.com/v1/shapes/{shapeId}publishable or secret key · 1 unit · cached 600 s
Get one saved shape's outline as GeoJSON, with its name and box.
One saved shape with its outline as GeoJSON, to draw on your map. Search answers point here in
data.boundary.href when the search used shape.
What to know
- An id that isn't one of this key's shapes answers 404
shape_not_found. - A search inside a shape leaves out listings with hidden addresses, as any drawn area does. Locations.
Path parameters
| Name | Type | Description |
|---|---|---|
shapeId |
string | A saved shape id (shp_…), from /v1/shapes. |
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 shape id: search by it with shape= |
name |
string | The name the account gave the shape. |
slug |
string | A URL-friendly form of the name, unique within the account. |
vertexCount |
integer | Positions in the stored outline. A search sends it simplified to fit the engine's polygon size. |
viewport |
object | The shape'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. |
href |
string | GET this URL (same key) for the outline as GeoJSON. |
siteId |
string or null | The site the shape belongs to; null when every site of the account can use it. |
updatedAt |
string | When the shape was last saved (ISO 8601). |
geometry |
object | The outline as saved: GeoJSON, [longitude, latitude] positions. |
geometry.type |
string (enum) | Polygon. One of Polygon. |
geometry.coordinates |
array of array of array of number | The outer ring first, then any holes. |
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, shape_not_found, daily_quota_exceeded, rate_limited, internal_error, api_paused, source_unavailable