Matthew Phelan
3 years ago
5 changed files with 47 additions and 3 deletions
@ -0,0 +1,7 @@
|
||||
class AddTotadult < ActiveRecord::Migration[6.1] |
||||
def change |
||||
change_table :case_logs, bulk: true do |t| |
||||
t.column :totadult, :integer |
||||
end |
||||
end |
||||
end |
@ -0,0 +1,12 @@
|
||||
### ADR - 012: Inferring LA from postcode |
||||
|
||||
We use ONS data to infer local authority from postcode in the property information section. |
||||
The Office for National Statistics (ONS) publishes the National Statistics |
||||
Postcode Lookup (NSPL) and ONS Postcode Directory (ONSPD) datasets, |
||||
which may be used to find a local authority district for a postcode when compiling statistics. |
||||
|
||||
We're using postcodes.io API with postcodes_io gem. |
||||
Postcodes.io uses OS and ONS data which is updated as soon as new data becomes available. |
||||
|
||||
We are not using OS places API due to the lack of data. |
||||
Closest datapoint to LA in OS places api is ADMINISTRATIVE_AREA which does not always match with local authority. |
Loading…
Reference in new issue