Skip to content
Navigation

Get a parcel and its neighbouring parcels

Returns the raw GeoServer GeoJSON FeatureCollection for a parcel located by lat/lng or egrid (currently the same query as /res_api/parcel_data; a bounding-box neighbour filter is planned).

GET alias (cacheable). Identical handler and identical response to the POST, with the inputs as query parameters. A POST is uncacheable by browsers and by any CDN, so apps on a first-load path should prefer this GET.

The response carries Cache-Control: private, max-age=3600, stale-while-revalidate=600 and Vary: Origin, token. The policy is private, never public: the endpoint is gated on the token request header, and a header is not part of any shared-cache key - a public/s-maxage directive would let a CDN serve the payload to a caller that never presented the token. Error responses (including the legacy HTTP-200 plain-text ones) carry Cache-Control: no-store.

GET
https://res.aireon.ch/res_api/parcel_data_neighbor

Authorization

  • ResApiToken
    API key in header
    required

Query parameters

  • egrid
    optional
    string

    Canonical federal parcel id (EGRID). Preferred over lat/lng.

  • lat
    optional
    number

    WGS84 latitude. Required together with lng when egrid is absent.

  • lng
    optional
    number

    WGS84 longitude. Required together with lat when egrid is absent.

Returns

200

GeoJSON FeatureCollection, or a plain-text error body.

JSON
  • type
    optional
    string
  • features
    optional
    array of
    object
    • type
      optional
      string
    • id
      optional
      string
    • geometry
      optional
      object
    • properties
      optional
      object

      Open property bag. /res_api/parcel_data adds the following room-app density fields on the first feature.

      • ratio_v
        optional
        number | null

        Built volume relative to the zone reference volume (percent; 100 = typical for the zone), i.e. cz_util_now divided by the zone 20-year median utilization x 100. It is not utilization and not a share of a legal allowance. Existing value from the parcel table is passed through unchanged; computed as bldg_vol_sb3dgdb / vol_max * 100 when absent (vol_max is the zone reference volume).

      • free_v
        optional
        number | null

        vol_max - bldg_vol_sb3dgdb, in m³: the zone reference volume minus the built volume. Negative when the parcel is built above the zone reference; not a legal allowance.

      • ratio_s
        optional
        number | null

        Built-footprint / parcel_area (percent). Passed through from the parcel table when populated.

      • gfz
        optional
        number | null

        Geschossflächenziffer - gfa_now / parcel_area.

      • bldg_height_m
        optional
        number | null

        Tallest building on the parcel, in metres (= bldg_height_max).

      • bldg_floors_n
        optional
        number | null

        Max number of floors on the parcel (= bldg_floors).

HTML
Missing Token

401

Authentication missing or invalid.
JSON
  • error
    string
    required

    Human-readable error description.

  • message
    optional
    string

    Optional underlying error message.

Type to search…

↑↓ navigate↵ selectEsc close