Madrid is a county and its consensus geometry is derived from meso.
{"meso:gaul_admin":"Funza","name:epo_x_preferred":["Madrid"],"name:jpn_x_preferred":["マドリード"],"geom:latitude":4.772408,"mz:note":"quattroshapes points import (201603)","wof:name":"Madrid","name:ceb_x_preferred":["Madrid"],"wd:wordcount":186,"name:avk_x_preferred":["Madrid"],"wof:placetype_local":"municipality","name:kat_x_preferred":["მადრიდი"],"meso:source":"SH","name:zho_min_nan_x_preferred":["Madrid"],"meso:name_alt":"Madrid","wof:geom_alt":["quattroshapes"],"counts:concordances_total":6,"geom:type":"Polygon","qs:woe_adm0":23424787,"wof:lastmodified":1695886227,"meso:admin_1":"Cundinamarca","wof:belongsto":[102191577,85632519,85670159],"meso:gadm_hasc2":"CO.CU.FZ","mps:latitude":4.751276,"wof:repo":"whosonfirst-data-admin-co","wof:country":"CO","name:swe_x_preferred":["Madrid"],"wof:breaches":[],"edtf:inception":"uuuu","iso:country":"CO","qs:photos_9r":3,"qs:photos_9k":1,"geom:bbox":"-74.327502,4.682495,-74.174802,4.865521","name:hin_x_preferred":["मैड्रिड"],"qs:qs_id":54806,"src:lbl_centroid":"mapshaper","name:fra_x_preferred":["Madrid"],"wof:geomhash":"4ab01017184fd1bf060ac7fe86e2924c","name:fas_x_preferred":["مادرید"],"mz:is_ceased":0,"name:nan_x_preferred":["Madrid"],"wof:created":1459009670,"lbl:max_zoom":10,"wof:placetype":"county","meso:mps_y":4.751276,"qs:photos":19,"name:zho_x_preferred":["馬德里"],"meso:mps_x":-74.279844,"name:war_x_preferred":["Madrid"],"wof:concordances":{"gn:id":3675708,"gp:id":26797100,"hasc:id":"CO.CU.FZ","qs_pg:id":54806,"wd:id":"Q2316396","wk:page":"Madrid, Cundinamarca"},"name:cat_x_preferred":["Madrid"],"src:geom_alt":["quattroshapes"],"name:pol_x_preferred":["Madrid"],"wof:tags":[],"name:urd_x_preferred":["میڈرڈ، کونڈینامارکا"],"meso:local_id":"25430","qs:photos_all":96,"name:urd_x_variant":["میڈرڈ"],"wof:supersedes":[],"lbl:longitude":-74.279844,"edtf:cessation":"uuuu","name:deu_x_preferred":["Madrid"],"meso:gadm_admin":"Funza","name:ben_x_preferred":["মাদ্রিদ"],"qs:woe_id":26797100,"counts:names_total":31,"mz:is_current":1,"name:vie_x_preferred":["Madrid"],"wof:hierarchy":[{"continent_id":102191577,"country_id":85632519,"county_id":421190823,"region_id":85670159}],"qs:pop_sr":"0","mz:min_zoom":6,"lbl:latitude":4.751276,"lbl:min_zoom":8,"qs:gn_country":"CO","geom:area":0.009907,"label:eng_x_preferred_placetype":["municipality"],"qs:name":"Madrid","wof:shortcode":"FZ","counts:names_preferred":29,"geom:area_square_m":1.22071375566687E8,"counts:names_variant":2,"qs:gn_id":3675708,"name:ukr_x_preferred":["Мадрид"],"qs:gn_fcode":"ADM2","name:spa_x_preferred":["Madrid"],"meso:type_local":"Cabecera Municipal","name:eng_x_preferred":["Madrid"],"wof:superseded_by":[],"name:nld_x_preferred":["Madrid"],"wof:placetype_id":102312313,"qs:placetype":"County","label:eng_x_preferred_longname":["Madrid Municipality"],"name:ita_x_preferred":["Madrid"],"qs:photos_sr":1,"qs:photos_1k":4,"mz:is_deprecated":0,"qs:gn_pop":0,"name:tgl_x_preferred":["Madrid"],"geom:longitude":-74.259578,"wof:id":421190823,"name:ast_x_preferred":["Madrid"],"meso:name_local":"Madrid","name:eng_x_variant":["Funza"],"src:geom":"meso","qs:name_adm0":"Colombia","qs:name_adm1":"Cundinamarca","counts:names_languages":29,"mps:longitude":-74.279844,"name:glg_x_preferred":["Madrid"],"wof:parent_id":85670159,"wof:placetype_names":["county"],"mz:hierarchy_label":1,"name:gle_x_preferred":["Madrid"],"name:msa_x_preferred":["Madrid"]}