Docs
Contents

resumen_zona

Counts the parcels that match some filters, grouped by one to three fields (municipality, group, class, district, built…), and adds up the numeric fields requested, with how many parcels have each one. It takes the same filters, municipalities and centre as buscar.

Arguments

ArgumentTypeWhat it is
agrupar_porlist of texts, required1 to 3 fields to group by, for example ["municipio", "grupo"]
filtrostext (JSON)The conditions, as in buscar
municipioslist of textsMunicipality ids; without them, every municipality your company can query
lonnumberLongitude of the centre
latnumberLatitude of the centre
radio_mnumberRadius in metres, up to 50,000
metricaslist of textsNumeric fields to add up, for example ["techo_m2t", "superficie_m2"]
limiteintegerGroups, from 1 to 200 (50 by default)
colecciontextparcelas (default) or ambitos: counts planning areas and sectors and adds up their figures

Response

total, sin_dato and the groups, from most to fewest parcels. Each group carries its values, filas and, for each metric, suma and con_dato.