{"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":"S19002059","code_system":"NRS","name":"Castle Douglas","alternative_names":[],"place_class":"Town","geography_type":"locality","geography_definition":"NRS Localities 2020","nation":"Scotland","canonical_url":"https://britainindata.co.uk/place/castle-douglas","machine_url":"https://britainindata.co.uk/data/v1/places/castle-douglas.json","local_authorities":[{"id":"S12000006","code_system":"GSS","name":"Dumfries and Galloway","canonical_url":"https://britainindata.co.uk/area/dumfries-and-galloway","machine_url":"https://britainindata.co.uk/data/v1/geographies/dumfries-and-galloway.json","share_of_place":1,"method":"NRS council areas + grid-sample n=85","primary":true}],"location":{"lat":54.942631,"lon":-3.935605},"note":"A settlement is not its local authority: statistics below describe the settlement boundary only.","population":{"value":4000,"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":[87,123,136,70,89,107,105,93,86,114,164,175,145,162,133,136,99,63,37],"m":[85,104,112,75,122,111,103,92,89,106,116,130,130,131,123,102,84,40,21],"all":[172,227,248,145,211,218,208,185,175,220,280,305,275,293,256,238,183,103,58]},"broad_ages":{"labels":["Under 16","16-64","65 and over"],"all":[647,2222,1131],"f":[346,1148,630],"m":[301,1074,501]},"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"}}