Distance travelled to work
Description
This method returns Census 2021 estimates that classify usual residents aged 16 years and over in employment the week before the census by the distance they travelled to work.
Distance travelled to work is the distance, in kilometres, between a person's residential postcode and their workplace postcode measured in a straight line. A distance travelled of 0.1km indicates that the workplace postcode is the same as the residential postcode. Distances over 1200km are treated as invalid, and an imputed or estimated value is added.
"Work mainly at or from home" is made up of those that ticked either the 'Mainly work at or from home' box for the address of workplace question, or the "Work mainly at or from home" box for the method of travel to work question.
"Other" includes no fixed place of work, working on an offshore installation and working outside of the UK.
Distance is calculated as the straight line distance between the enumeration postcode and the workplace postcode.
The estimates are as at Census Day, 21 March 2021.
Parameters
Name | Description |
---|---|
location path string | Postcode, coordinates in the lat,long format or UPRN in the uprn12345678 format. Postcode with or without space. This argument is case-insensitive. |
area_type query enum | Area types used in Census 2021. The method returns results based on the inclusion of the postcode/coordinate/UPRN within the designated geographical area. For instance, when using 'oa' as a parameter, the returned results will be for the Output Area that contains the specified postcode/coordinate/UPRN.
|
api_key query enum | Your API key.
|
{
"data": {
"residents": {
"Total": 98,
"Less than 2km": 8,
"2km to less than 5km": 16,
"5km to less than 10km": 14,
"10km to less than 20km": 7,
"20km to less than 30km": 0,
"30km to less than 40km": 0,
"40km to less than 60km": 0,
"60km and over": 3,
"Works mainly from home": 40,
"Works mainly at an offshore installation, in no fixed place, or outside the UK": 10
},
"rank": {
"Less than 2km": 3,
"2km to less than 5km": 5,
"5km to less than 10km": 5,
"10km to less than 20km": 3,
"20km to less than 30km": 1,
"30km to less than 40km": 1,
"40km to less than 60km": 1,
"60km and over": 5,
"Works mainly from home": 6,
"Works mainly at an offshore installation, in no fixed place, or outside the UK": 3
}
},
"dataDate": "2021-03-21",
"refreshedDate": "2021-03-21"
}
{
"error": "No such API key or it is not valid anymore."
}
{
"error": "You have exhausted the available calls provided by your package."
}
{
"error": "API key is invalid for the given action."
}
{
"error": "Can't find such location."
}
{
"error": "Too many requests have been sent in one second."
}
{
"error": "We have already started working on a resolution!"
}