Products

Features of a catalog feature product over an inline polygon (or any GET word as JSON).

Changed on

The POST twin of GET /v1/features/{product_id}: the same words as JSON fields, plus an inline area, area.geometry, a GeoJSON MultiPolygon (RFC 7946, WGS84; a Polygon is sent as a one-member MultiPolygon; positions [lon, lat] or [lon, lat, alt]) of at most 10,000 vertices, which does not fit a URL. area takes a reference or a geometry, not both. Every rule of the GET route applies; an unknown field is a 400.

Experimental (x-stability: experimental), as the GET route.

Caching

Cache-Control: private, no-store.

Auth and cost

As the GET route: weight 1 (data) per element, 2 (compute) per element with stats, sort, where or an area.

post/v1/features/{product_id}/query

Request

  • Base URL
    https://api.smarterweather.com
  • Auth
    HTTP bearer

Path parameters

product_id, string required

A catalog product id whose kind is feature or geojson (GET /v1/catalog).

Request body

FeaturesQueryRequest required

The GET /v1/features/{product_id} words as JSON, plus an inline area.geometry.

lat, number double
lon, number double
min_lon, number double
min_lat, number double
max_lon, number double
max_lat, number double
area, object

A reference (product with feature_id, feature_ids or filter) or an inline geometry.

hours, integer
start, string date-time

RFC 3339. The server also reads a date (YYYY-MM-DD, a UTC day over the inline area; on a day_of_year product, the first local day), as on the GET route.

end, string date-time

RFC 3339. The server also reads a date (YYYY-MM-DD, through that UTC day over the inline area; on a day_of_year product, the last local day, inclusive), as on the GET route.

at, string
filter, string[]
stats, string[]

As the GET stats parameter, count_by:cell:<deg> included.

properties, string[]
sort, string

As the GET sort parameter.

where, string[]

As the GET where parameter.

units, 'si' | 'metric' | 'imperial'

As the GET units parameter.

view, 'concise' | 'detailed'
limit, integer
cursor, string

Response

One FeatureCollection per element.

FeaturesResponse required

The feature door's answer (GET /v1/features/{product_id}), one element per area.

product, string required
truncated, boolean required

True when any element has a next_cursor.

elements, FeaturesElement[] required
meta, object required

Example response

{
  "product": "us_counties",
  "elements": [
    {
      "where": {
        "product": "nbm_daily_temps",
        "method": "point_in_cell"
      }
    }
  ],
  "meta": {
    "sources": [
      {
        "id": "hrrr",
        "attribution": "Data provided by NOAA/NWS",
        "license": "public_domain"
      }
    ]
  }
}

Changes

    • info

      added the optional property alternatives to the response with the status

    • info

      added the optional property alternatives to the response with the status

    • info

      added the optional property alternatives to the response with the status

    9 more changes in this revision