compare_locations
Compare median price per m², average area, and transaction counts across 2-5 districts side-by-side. Requires RCN district names and at least one filter like propertyType.
Instructions
Compare 2-5 districts side-by-side: median price/m², average area and transaction counts. Matches names only: call list_locations(search=...) first and use names it flags as RCN districts (rcn_district) - other names (most TERYT unit names) silently return no data. Needs at least one filter besides districts (e.g. propertyType).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| floor | No | Unit floor, multi-select: integers ('0' = parter, negatives = basement), 'Nplus' ('0plus' = ground and above), 'unknown' (none recorded). Not building storeys; rows with no floor drop out unless 'unknown' is listed. | |
| rooms | No | Rooms (izby), residential units only; multi-select ('8plus' = 8 or more). Rows with no count drop out unless 'unknown' is listed. | |
| dateTo | No | End date (YYYY-MM-DD) | |
| street | No | Street name filter | |
| maxArea | No | Maximum area in m² | |
| minArea | No | Minimum area in m² | |
| dateFrom | No | Start date (YYYY-MM-DD) | |
| maxPrice | No | Maximum price in PLN | |
| minPrice | No | Minimum price in PLN | |
| districts | Yes | Comma-separated district names (2-5, unique), e.g. 'Mokotów,Wola,Ursynów' | |
| marketType | No | primary (developer) or secondary (resale); the ~55% of records with no market type drop out when this is set. | |
| buildingType | No | Building type (PKOB); 'unknown' = none recorded (NULL, ~39% of buildings), any other value excludes such rows. | |
| propertyType | No | Property type filter (recommended - API requires at least one filter) | |
| unitFunction | No | Unit function; 'unknown' = none recorded (NULL), any other value excludes such rows. Garages only via 'garage'. | |
| ownershipType | No | Legal-right type (rodzaj prawa), multi-select; perpetual_usufruct = użytkowanie wieczyste; 'unknown' = none recorded. | |
| mpzpDesignation | No | MPZP zoning designation, exact token match; comma-separated = OR; 'unknown' = none recorded. Same codes as search_transactions mpzpDesignation. | |
| transactionType | No | Multi-select. For market analysis ALWAYS set it to exclude non-market deeds (subsidized, foreclosure, public_purpose); no-type rows (~2%) drop out unless 'unknown' is listed. | |
| includeDemographics | No | Add a GUS BDL demographics block per district (county-level: density, wages, unemployment, median age, price-to-income). Districts that do not resolve to a county are omitted from it. |