Comparable buildings for the similoo 3D viewer
Given a target parcel EGRID, returns the parcel's own metrics plus a ranked list of comparable parcels in the same zoning (cz_local) with recent construction. The primary candidate pool joins gwr_new_projects (the monthly scraper feed) onto parcel_2025_07 via a 50 m centroid radius; when fewer than 5 comparables match, the endpoint falls back to parcel_2025_07's own bldg_vol_sb3dgdb / cy_max columns (meta.fallback_used = 'parcel_table'). Similarity is computed in normalised z-space over (parcel_area_m2, building_volume_m3, ratioV) and inverted to 1 / (1 + distance). Response is cached in Redis for 7 days under similoo:v4:egrid:<EGRID>:years:<years|all>:limit:<limit>. The version segment moves with the payload shape: v3 added the same-municipality gate, v4 the unrestricted window, and the window segment renders as all rather than null so a numeric-window payload can never be served for an unrestricted request.
https://res.aireon.ch/score/similooAuthorization
Request body JSON required
- yearsoptional
Construction-year window. Any integer 1-100; the suite precision ladder uses the steps 5 / 10 / 15 / 20 / 40 / 60. Pass the string "all" (case-insensitive) or the number 0 for an unrestricted window with no construction-year floor at all. NOTE 100 is not "all" - Swiss parcels carry construction years well before 1926. A missing or unparseable value falls back to 10, never to unrestricted.
default: 10
Returns
200
Target parcel metrics + ranked comparables.