{"version":1,"type":"Settlement","data_version":"20261118T180351Z","registry_version":"20261118T115632Z","publisher":{"name":"Britain in Data","url":"https://britainindata.co.uk","@note":"Compiler and publisher of this representation; statistics originate with the cited source publishers."},"id":"S20001602","code_system":"NRS","name":"Bonnyrigg, Dalkeith, Mayfield and Gorebridge","alternative_names":[],"place_class":"Settlement","geography_type":"settlement","geography_definition":"NRS Settlements 2020 (groups of localities)","nation":"Scotland","canonical_url":"https://britainindata.co.uk/place/bonnyrigg-dalkeith-mayfield-and-gorebridge","machine_url":"https://britainindata.co.uk/data/v1/places/bonnyrigg-dalkeith-mayfield-and-gorebridge.json","local_authorities":[{"id":"S12000019","code_system":"GSS","name":"Midlothian","canonical_url":"https://britainindata.co.uk/area/midlothian","machine_url":"https://britainindata.co.uk/data/v1/geographies/midlothian.json","share_of_place":1,"method":"NRS council areas + grid-sample n=112","primary":true}],"location":{"lat":55.867223,"lon":-3.083896},"note":"A settlement is not its local authority: statistics below describe the settlement boundary only.","population":{"value":54940,"unit":"people","period":"2020","basis":"NRS mid-2020 population estimate","value_type":"estimated"},"statistics":{"basis":"NRS mid-2020 population estimate (Settlements and Localities, 2020 boundaries); not a census count","median_age":null,"age":{"bands":["0-4","5-9","10-15","16-19","20-24","25-29","30-34","35-39","40-44","45-49","50-54","55-59","60-64","65-69","70-74","75-79","80-84","85-89","90 & over"],"f":[1734,1878,1912,1086,1422,1790,1966,2030,1773,1840,2048,2060,1737,1467,1449,1022,726,450,234],"m":[1831,1783,1998,1157,1390,1568,1721,1760,1668,1720,1828,1832,1675,1300,1277,869,525,284,130],"all":[3565,3661,3910,2243,2812,3358,3687,3790,3441,3560,3876,3892,3412,2767,2726,1891,1251,734,364]},"broad_ages":{"labels":["Under 16","16-64","65 and over"],"all":[11136,34071,9733],"f":[5524,17752,5348],"m":[5612,16319,4385]},"tenure":null,"accommodation":null,"qualifications":null,"employment":null,"industry":null,"occupation":null,"health":null,"suppressed_values":"null = withheld by the publisher (disclosure control)"},"source":{"id":"nrs-settlements-localities-2020","dataset":"Population estimates for settlements and localities in Scotland, mid-2020","publisher":"National Records of Scotland","source_url":"https://www.nrscotland.gov.uk/publications/population-estimates-for-settlements-and-localities-in-scotland-mid-2020/","licence":{"name":"Open Government Licence v3.0","url":"https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/"}},"names_source":{"dataset":"OS Open Names","publisher":"Ordnance Survey","source_url":"https://www.ordnancesurvey.co.uk/products/os-open-names"}}