Get geography identity
Get geography identity
Error codes, retries, and value states are in Errors and retries.
Schemas: Geography, GeographyIdentity, GeographyType, GeographyUnavailable, ProblemDetails, ResourceEnvelope_Geography_.
Validated county/state FIPS identity. While canonical identity delivery is unpublished the response is HTTP 200 with availability UNAVAILABLE, reason CANONICAL_GEOGRAPHY_UNPUBLISHED and data null; the identity is validated for shape only. No geometry is returned. Responses use Cache-Control: no-store.
geography_type*GeographyTypeKind of place: county or state. Any other value returns 400 INVALID_REQUEST.
"county""state"geography_id*Geography IdFIPS code of the place, sent as a string with leading zeros kept: five digits for a county, two for a state. A code of the wrong length or with non-digits returns 400 INVALID_REQUEST. Connecticut counties use planning-region codes such as 09110.
Typed answer. While canonical geography identity delivery is unpublished this is availability UNAVAILABLE with data null (HTTP 200, not 5xx, because the hosting edge replaces origin 5xx responses with an HTML 504). This operation ignores If-None-Match and always returns 200 with the full body.
application/json- response
One county or state identity, wrapped in data. The identity carries no geometry.
data*The requested resource.
Response Headers
Content-Type
Schema
stringMedia type of the body: `application/json`.
Cache-Control
Schema
stringHow long a client or shared cache can reuse the response: `no-store`.
X-Request-ID
Schema
stringIdentifier for this request. Quote it when you ask for support. If you send a valid `X-Request-ID` request header, the API uses that value. Otherwise it generates one. A response that a shared cache replays can carry the identifier of the request that filled the cache.
curl -X GET 'https://api.onehealthatlas.org/v1/geographies/county/08001'{ "availability": "UNAVAILABLE", "reason": "CANONICAL_GEOGRAPHY_UNPUBLISHED", "data": null, "geography": { "geography_type": "county", "geography_id": "36061" }, "limitations": [ "Canonical geography identity delivery is not published by this API capability.", "The requested identity is validated for shape only; membership in the current release is not asserted (use the county availability route for that). No canonical, display, or analysis geometry is returned or inferred." ]}Last updated on