addresszen 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE +1 -0
- data/README.md +34 -0
- data/lib/addresszen/base_client.rb +88 -0
- data/lib/addresszen/client.rb +12 -0
- data/lib/addresszen/errors.rb +59 -0
- data/lib/addresszen/generated.rb +78 -0
- data/lib/addresszen/model.rb +73 -0
- data/lib/addresszen/operations.rb +668 -0
- data/lib/addresszen/responses/api_key_details_response.rb +21 -0
- data/lib/addresszen/responses/api_key_response.rb +21 -0
- data/lib/addresszen/responses/api_key_usage_response.rb +21 -0
- data/lib/addresszen/responses/autocomplete_response.rb +19 -0
- data/lib/addresszen/responses/config_response.rb +21 -0
- data/lib/addresszen/responses/configs_response.rb +21 -0
- data/lib/addresszen/responses/delete_config_response.rb +19 -0
- data/lib/addresszen/responses/delete_licensee_response.rb +19 -0
- data/lib/addresszen/responses/email_response.rb +31 -0
- data/lib/addresszen/responses/licensee_response.rb +21 -0
- data/lib/addresszen/responses/licensees_response.rb +21 -0
- data/lib/addresszen/responses/phone_number_response.rb +31 -0
- data/lib/addresszen/responses/place_response.rb +19 -0
- data/lib/addresszen/responses/resolve_place_response.rb +24 -0
- data/lib/addresszen/responses/usa_resolve_address_response.rb +21 -0
- data/lib/addresszen/responses/verify_response.rb +31 -0
- data/lib/addresszen/transport.rb +61 -0
- data/lib/addresszen/types/ab_address.rb +283 -0
- data/lib/addresszen/types/abp_address.rb +674 -0
- data/lib/addresszen/types/address.rb +265 -0
- data/lib/addresszen/types/address_suggestion.rb +27 -0
- data/lib/addresszen/types/api_key.rb +27 -0
- data/lib/addresszen/types/api_key_automated_topup.rb +17 -0
- data/lib/addresszen/types/api_key_current_purchase.rb +27 -0
- data/lib/addresszen/types/api_key_daily_limit.rb +21 -0
- data/lib/addresszen/types/api_key_datasets.rb +202 -0
- data/lib/addresszen/types/api_key_details.rb +90 -0
- data/lib/addresszen/types/api_key_individual_limit.rb +16 -0
- data/lib/addresszen/types/api_key_monthly_limit.rb +21 -0
- data/lib/addresszen/types/api_key_notifications.rb +35 -0
- data/lib/addresszen/types/autocomplete_result.rb +13 -0
- data/lib/addresszen/types/available_context.rb +35 -0
- data/lib/addresszen/types/ban_address.rb +179 -0
- data/lib/addresszen/types/bev_address.rb +288 -0
- data/lib/addresszen/types/cannar_address.rb +297 -0
- data/lib/addresszen/types/carrier.rb +31 -0
- data/lib/addresszen/types/config.rb +34 -0
- data/lib/addresszen/types/configs_result.rb +15 -0
- data/lib/addresszen/types/deleted_config.rb +13 -0
- data/lib/addresszen/types/deleted_licensee.rb +13 -0
- data/lib/addresszen/types/ecad_address.rb +393 -0
- data/lib/addresszen/types/ecaf_address.rb +204 -0
- data/lib/addresszen/types/email.rb +45 -0
- data/lib/addresszen/types/fodbosa_address.rb +201 -0
- data/lib/addresszen/types/geonames_place.rb +153 -0
- data/lib/addresszen/types/gnaf_address.rb +463 -0
- data/lib/addresszen/types/here_address.rb +174 -0
- data/lib/addresszen/types/invalid_phone_number.rb +50 -0
- data/lib/addresszen/types/kadaster_address.rb +480 -0
- data/lib/addresszen/types/kartverket_address.rb +342 -0
- data/lib/addresszen/types/key_usage_day.rb +16 -0
- data/lib/addresszen/types/key_usage_result.rb +36 -0
- data/lib/addresszen/types/licensee.rb +50 -0
- data/lib/addresszen/types/licensee_daily_usage.rb +29 -0
- data/lib/addresszen/types/licensees_result.rb +23 -0
- data/lib/addresszen/types/mois_address.rb +440 -0
- data/lib/addresszen/types/mr_address.rb +99 -0
- data/lib/addresszen/types/native_record.rb +368 -0
- data/lib/addresszen/types/nyb_address.rb +99 -0
- data/lib/addresszen/types/paf_address.rb +96 -0
- data/lib/addresszen/types/pafa_address.rb +104 -0
- data/lib/addresszen/types/pafw_address.rb +99 -0
- data/lib/addresszen/types/phone_number.rb +50 -0
- data/lib/addresszen/types/place.rb +79 -0
- data/lib/addresszen/types/place_result.rb +21 -0
- data/lib/addresszen/types/place_suggestion.rb +32 -0
- data/lib/addresszen/types/sdfi_address.rb +520 -0
- data/lib/addresszen/types/swt_address.rb +247 -0
- data/lib/addresszen/types/unknown_email.rb +43 -0
- data/lib/addresszen/types/upujp_address.rb +763 -0
- data/lib/addresszen/types/usa_cass_verified_address.rb +254 -0
- data/lib/addresszen/types/usa_verify_match.rb +116 -0
- data/lib/addresszen/types/usa_verify_no_match.rb +81 -0
- data/lib/addresszen/types/usps_address.rb +294 -0
- data/lib/addresszen/version.rb +5 -0
- data/lib/addresszen.rb +14 -0
- data/sig/addresszen/base_client.rbs +40 -0
- data/sig/addresszen/client.rbs +5 -0
- data/sig/addresszen/errors.rbs +27 -0
- data/sig/addresszen/model.rbs +37 -0
- data/sig/addresszen/operations.rbs +153 -0
- data/sig/addresszen/responses/api_key_details_response.rbs +13 -0
- data/sig/addresszen/responses/api_key_response.rbs +13 -0
- data/sig/addresszen/responses/api_key_usage_response.rbs +13 -0
- data/sig/addresszen/responses/autocomplete_response.rbs +13 -0
- data/sig/addresszen/responses/config_response.rbs +13 -0
- data/sig/addresszen/responses/configs_response.rbs +13 -0
- data/sig/addresszen/responses/delete_config_response.rbs +13 -0
- data/sig/addresszen/responses/delete_licensee_response.rbs +13 -0
- data/sig/addresszen/responses/email_response.rbs +19 -0
- data/sig/addresszen/responses/licensee_response.rbs +13 -0
- data/sig/addresszen/responses/licensees_response.rbs +13 -0
- data/sig/addresszen/responses/phone_number_response.rbs +19 -0
- data/sig/addresszen/responses/place_response.rbs +13 -0
- data/sig/addresszen/responses/resolve_place_response.rbs +13 -0
- data/sig/addresszen/responses/usa_resolve_address_response.rbs +13 -0
- data/sig/addresszen/responses/verify_response.rbs +19 -0
- data/sig/addresszen/transport.rbs +39 -0
- data/sig/addresszen/types/ab_address.rbs +57 -0
- data/sig/addresszen/types/abp_address.rbs +126 -0
- data/sig/addresszen/types/address.rbs +142 -0
- data/sig/addresszen/types/address_suggestion.rbs +11 -0
- data/sig/addresszen/types/api_key.rbs +11 -0
- data/sig/addresszen/types/api_key_automated_topup.rbs +9 -0
- data/sig/addresszen/types/api_key_current_purchase.rbs +11 -0
- data/sig/addresszen/types/api_key_daily_limit.rbs +10 -0
- data/sig/addresszen/types/api_key_datasets.rbs +46 -0
- data/sig/addresszen/types/api_key_details.rbs +22 -0
- data/sig/addresszen/types/api_key_individual_limit.rbs +9 -0
- data/sig/addresszen/types/api_key_monthly_limit.rbs +10 -0
- data/sig/addresszen/types/api_key_notifications.rbs +13 -0
- data/sig/addresszen/types/autocomplete_result.rbs +9 -0
- data/sig/addresszen/types/available_context.rbs +13 -0
- data/sig/addresszen/types/ban_address.rbs +46 -0
- data/sig/addresszen/types/bev_address.rbs +67 -0
- data/sig/addresszen/types/cannar_address.rbs +62 -0
- data/sig/addresszen/types/carrier.rbs +14 -0
- data/sig/addresszen/types/config.rbs +14 -0
- data/sig/addresszen/types/configs_result.rbs +9 -0
- data/sig/addresszen/types/deleted_config.rbs +9 -0
- data/sig/addresszen/types/deleted_licensee.rbs +9 -0
- data/sig/addresszen/types/ecad_address.rbs +84 -0
- data/sig/addresszen/types/ecaf_address.rbs +45 -0
- data/sig/addresszen/types/email.rbs +16 -0
- data/sig/addresszen/types/fodbosa_address.rbs +43 -0
- data/sig/addresszen/types/geonames_place.rbs +42 -0
- data/sig/addresszen/types/gnaf_address.rbs +104 -0
- data/sig/addresszen/types/here_address.rbs +37 -0
- data/sig/addresszen/types/invalid_phone_number.rbs +17 -0
- data/sig/addresszen/types/kadaster_address.rbs +98 -0
- data/sig/addresszen/types/kartverket_address.rbs +78 -0
- data/sig/addresszen/types/key_usage_day.rbs +10 -0
- data/sig/addresszen/types/key_usage_result.rbs +13 -0
- data/sig/addresszen/types/licensee.rbs +17 -0
- data/sig/addresszen/types/licensee_daily_usage.rbs +12 -0
- data/sig/addresszen/types/licensees_result.rbs +11 -0
- data/sig/addresszen/types/mois_address.rbs +97 -0
- data/sig/addresszen/types/mr_address.rbs +27 -0
- data/sig/addresszen/types/native_record.rbs +34 -0
- data/sig/addresszen/types/nyb_address.rbs +27 -0
- data/sig/addresszen/types/paf_address.rbs +27 -0
- data/sig/addresszen/types/pafa_address.rbs +27 -0
- data/sig/addresszen/types/pafw_address.rbs +27 -0
- data/sig/addresszen/types/phone_number.rbs +17 -0
- data/sig/addresszen/types/place.rbs +29 -0
- data/sig/addresszen/types/place_result.rbs +15 -0
- data/sig/addresszen/types/place_suggestion.rbs +12 -0
- data/sig/addresszen/types/sdfi_address.rbs +108 -0
- data/sig/addresszen/types/swt_address.rbs +57 -0
- data/sig/addresszen/types/unknown_email.rbs +16 -0
- data/sig/addresszen/types/upujp_address.rbs +156 -0
- data/sig/addresszen/types/usa_cass_verified_address.rbs +62 -0
- data/sig/addresszen/types/usa_verify_match.rbs +29 -0
- data/sig/addresszen/types/usa_verify_no_match.rbs +32 -0
- data/sig/addresszen/types/usps_address.rbs +63 -0
- metadata +209 -0
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module AddressZen
|
|
6
|
+
module Types
|
|
7
|
+
# AddressBase Premium Address
|
|
8
|
+
#
|
|
9
|
+
# A property record from Ordnance Survey's AddressBase Premium, Ordnance Survey's most detailed
|
|
10
|
+
# address dataset for Great Britain. Each record is a Basic Land and Property Unit (BLPU) keyed
|
|
11
|
+
# by its UPRN. Alongside the Royal Mail delivery point it carries the local authority address
|
|
12
|
+
# (`pao_*`, `sao_*`, `usrn`), classification (`classification_code`), lifecycle
|
|
13
|
+
# (`logical_status`, `blpu_state`), coordinates, Welsh alternatives (`welsh_*`), the street
|
|
14
|
+
# record (`street_*`) and cross references to OS MasterMap (`toid`), the Valuation Office Agency
|
|
15
|
+
# (`council_tax_ref`, `ndr_ref`) and ONS (`ons_ward_code`, `ons_parish_code`). Ordnance Survey
|
|
16
|
+
# publishes around 40 million records and refreshes them every six weeks.
|
|
17
|
+
#
|
|
18
|
+
# How it differs from the neighbouring datasets:
|
|
19
|
+
#
|
|
20
|
+
# - **AddressBase Core** (`ab`) is a weekly, flat cut of the current approved records: one row
|
|
21
|
+
# per UPRN with coordinates, a two-character classification and the key identifiers. It
|
|
22
|
+
# carries no history, no provisional records, no Welsh alternatives, no local authority
|
|
23
|
+
# address breakdown and no street, VOA or ONS cross references.
|
|
24
|
+
# - **Royal Mail PAF** (`paf`) lists delivery points, keyed by UDPRN. The vast majority of PAF
|
|
25
|
+
# addresses are matched to a UPRN, but there will always be a small number (~1%) with no
|
|
26
|
+
# corresponding record on AddressBase Premium. PAF holds around 30 million GB delivery points
|
|
27
|
+
# against AddressBase Premium's 40 million UPRNs; the difference is non-postal objects
|
|
28
|
+
# (substations, car parks, sites under construction), provisional and historic records. Every
|
|
29
|
+
# GB PAF delivery point appears here as the `dpa_*` record.
|
|
30
|
+
# - **OS NGD Address** carries the same content restructured into feature types with daily
|
|
31
|
+
# currency. AddressBase Premium is not being retired. The Ordnance Survey end of life notice
|
|
32
|
+
# for autumn 2027 covers AddressBase and AddressBase Plus only.
|
|
33
|
+
class AbpAddress < Model
|
|
34
|
+
# Unique Property Reference Number - a persistent identifier for a Basic Land and Property
|
|
35
|
+
# Unit (BLPU). Up to 12 digits. Primary key for the BLPU spine. Carried as a string to
|
|
36
|
+
# preserve precision (12-digit values can exceed Number.MAX_SAFE_INTEGER).
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
def uprn = @hash["uprn"]
|
|
40
|
+
|
|
41
|
+
# UPRN of the parent record where a parent-child relationship exists (flats sharing a building
|
|
42
|
+
# entrance, sub-units of a parent property).
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
def parent_uprn = @hash["parent_uprn"]
|
|
46
|
+
|
|
47
|
+
# Logical lifecycle status of the BLPU. `1` Approved, `6` Provisional, `8` Historical. BLPU
|
|
48
|
+
# records do not take value `3` (alternative).
|
|
49
|
+
#
|
|
50
|
+
# @return [Integer]
|
|
51
|
+
def logical_status = @hash["logical_status"]
|
|
52
|
+
|
|
53
|
+
# Physical state of the BLPU. `1` Under construction, `2` In use, `3` Unoccupied / vacant /
|
|
54
|
+
# derelict, `4` No longer existing, `6` Planning permission granted.
|
|
55
|
+
#
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
def blpu_state = @hash["blpu_state"]
|
|
58
|
+
|
|
59
|
+
# Date the BLPU achieved its current state.
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
def blpu_state_date = @hash["blpu_state_date"]
|
|
63
|
+
|
|
64
|
+
# Country containing the BLPU, determined by intersection with OS Boundary-Line. `E` England,
|
|
65
|
+
# `W` Wales, `S` Scotland, `N` Northern Ireland, `L` Channel Islands, `M` Isle of Man, `J` not
|
|
66
|
+
# assigned to a country.
|
|
67
|
+
#
|
|
68
|
+
# @return [String]
|
|
69
|
+
def country = @hash["country"]
|
|
70
|
+
|
|
71
|
+
# Latitude coordinate in the ETRS89 coordinate reference system.
|
|
72
|
+
#
|
|
73
|
+
# @return [Float]
|
|
74
|
+
def latitude = @hash["latitude"]
|
|
75
|
+
|
|
76
|
+
# Longitude coordinate in the ETRS89 coordinate reference system.
|
|
77
|
+
#
|
|
78
|
+
# @return [Float]
|
|
79
|
+
def longitude = @hash["longitude"]
|
|
80
|
+
|
|
81
|
+
# X location in metres on the OSGB36 British National Grid (precision 8, scale 2).
|
|
82
|
+
#
|
|
83
|
+
# @return [Float]
|
|
84
|
+
def x_coordinate = @hash["x_coordinate"]
|
|
85
|
+
|
|
86
|
+
# Y location in metres on the OSGB36 British National Grid (precision 9, scale 2).
|
|
87
|
+
#
|
|
88
|
+
# @return [Float]
|
|
89
|
+
def y_coordinate = @hash["y_coordinate"]
|
|
90
|
+
|
|
91
|
+
# Representative Point Code - reliability of the BLPU's coordinate, as assessed by the local
|
|
92
|
+
# authority custodian. `1` Central internal, `2` General internal, `3` Transitional, `4`
|
|
93
|
+
# Street location, `5` Postcode unit, `9` Low accuracy.
|
|
94
|
+
#
|
|
95
|
+
# @return [Integer, nil]
|
|
96
|
+
def rpc = @hash["rpc"]
|
|
97
|
+
|
|
98
|
+
# 4-digit identifier of the Local Authority responsible for maintaining the record.
|
|
99
|
+
#
|
|
100
|
+
# @return [Integer]
|
|
101
|
+
def local_custodian_code = @hash["local_custodian_code"]
|
|
102
|
+
|
|
103
|
+
# Whether the address can receive mail per AddressBase rules. `D` linked to PAF, `N` not a
|
|
104
|
+
# postal address, `C` postal with a PAF-linked parent, `L` postal based on Local Authority
|
|
105
|
+
# information.
|
|
106
|
+
#
|
|
107
|
+
# @return [String]
|
|
108
|
+
def addressbase_postal = @hash["addressbase_postal"]
|
|
109
|
+
|
|
110
|
+
# Royal Mail PAF postcode, locally assigned by the custodian, or spatially derived where no
|
|
111
|
+
# PAF match exists. Up to 8 characters.
|
|
112
|
+
#
|
|
113
|
+
# @return [String]
|
|
114
|
+
def postcode_locator = @hash["postcode_locator"]
|
|
115
|
+
|
|
116
|
+
# Count of child UPRNs for this record where parent-child relationships exist.
|
|
117
|
+
#
|
|
118
|
+
# @return [Integer]
|
|
119
|
+
def multi_occ_count = @hash["multi_occ_count"]
|
|
120
|
+
|
|
121
|
+
# Date the address record was inserted into the database.
|
|
122
|
+
#
|
|
123
|
+
# @return [String, nil]
|
|
124
|
+
def blpu_start_date = @hash["blpu_start_date"]
|
|
125
|
+
|
|
126
|
+
# Date the address record was closed in the database.
|
|
127
|
+
#
|
|
128
|
+
# @return [String, nil]
|
|
129
|
+
def blpu_end_date = @hash["blpu_end_date"]
|
|
130
|
+
|
|
131
|
+
# Date of the most recent attribute change on the BLPU record.
|
|
132
|
+
#
|
|
133
|
+
# @return [String, nil]
|
|
134
|
+
def blpu_last_update_date = @hash["blpu_last_update_date"]
|
|
135
|
+
|
|
136
|
+
# Date the record was inserted into the Local Authority database.
|
|
137
|
+
#
|
|
138
|
+
# @return [String, nil]
|
|
139
|
+
def blpu_entry_date = @hash["blpu_entry_date"]
|
|
140
|
+
|
|
141
|
+
# Royal Mail's Unique Delivery Point Reference Number - primary key for the Delivery Point
|
|
142
|
+
# Address (DPA) record. Up to 8 digits. NULL for non-postal UPRNs.
|
|
143
|
+
#
|
|
144
|
+
# @return [String, nil]
|
|
145
|
+
def udprn = @hash["udprn"]
|
|
146
|
+
|
|
147
|
+
# Royal Mail-recognised organisation name from DPA, falling back to the AddressBase
|
|
148
|
+
# Organisation record's `organisation` when DPA is absent. Title-cased.
|
|
149
|
+
#
|
|
150
|
+
# @return [String, nil]
|
|
151
|
+
def organisation_name = @hash["organisation_name"]
|
|
152
|
+
|
|
153
|
+
# Registered legal name from the AddressBase Organisation record.
|
|
154
|
+
#
|
|
155
|
+
# @return [String, nil]
|
|
156
|
+
def legal_name = @hash["legal_name"]
|
|
157
|
+
|
|
158
|
+
# Subdivision of an organisation that receives mail at a distinct delivery point. Requires
|
|
159
|
+
# `organisation_name` to be present. Title-cased.
|
|
160
|
+
#
|
|
161
|
+
# @return [String, nil]
|
|
162
|
+
def department_name = @hash["department_name"]
|
|
163
|
+
|
|
164
|
+
# Property subdivision identifier (e.g. flat number). Requires `building_name` or
|
|
165
|
+
# `building_number`. Title-cased. Falls back to the LPI's `sao_text` when there is no delivery
|
|
166
|
+
# point.
|
|
167
|
+
#
|
|
168
|
+
# @return [String, nil]
|
|
169
|
+
def sub_building_name = @hash["sub_building_name"]
|
|
170
|
+
|
|
171
|
+
# Descriptive name applied to a single building or small group of buildings. Title-cased.
|
|
172
|
+
# Falls back to the LPI's SAO number/range plus `pao_text` when there is no delivery point.
|
|
173
|
+
#
|
|
174
|
+
# @return [String, nil]
|
|
175
|
+
def building_name = @hash["building_name"]
|
|
176
|
+
|
|
177
|
+
# Numeric identifier for a single building or small group of buildings. Complex number formats
|
|
178
|
+
# (e.g. "12A") go in `building_name` or `sub_building_name`. Falls back to the LPI's
|
|
179
|
+
# `pao_start_number` when there is no delivery point and that number is a bare integer - a
|
|
180
|
+
# suffixed or ranged PAO number is folded onto `thoroughfare` instead.
|
|
181
|
+
#
|
|
182
|
+
# @return [Integer, nil]
|
|
183
|
+
def building_number = @hash["building_number"]
|
|
184
|
+
|
|
185
|
+
# Named thoroughfare within another named thoroughfare. Requires `thoroughfare` to be present.
|
|
186
|
+
# Title-cased.
|
|
187
|
+
#
|
|
188
|
+
# @return [String, nil]
|
|
189
|
+
def dependent_thoroughfare = @hash["dependent_thoroughfare"]
|
|
190
|
+
|
|
191
|
+
# Road, track or named access route with Royal Mail delivery points. Title-cased. Falls back
|
|
192
|
+
# to the LPI street's `street_description` (with a suffixed or ranged PAO number prefixed)
|
|
193
|
+
# when there is no delivery point.
|
|
194
|
+
#
|
|
195
|
+
# @return [String, nil]
|
|
196
|
+
def thoroughfare = @hash["thoroughfare"]
|
|
197
|
+
|
|
198
|
+
# Estate or area name used to distinguish similar thoroughfares within a dependent locality.
|
|
199
|
+
# Requires `dependent_locality`. Title-cased.
|
|
200
|
+
#
|
|
201
|
+
# @return [String, nil]
|
|
202
|
+
def double_dependent_locality = @hash["double_dependent_locality"]
|
|
203
|
+
|
|
204
|
+
# Subdivision of a post town to differentiate same-name thoroughfares. Title-cased. Falls back
|
|
205
|
+
# to the LPI street's `street_locality` when there is no delivery point.
|
|
206
|
+
#
|
|
207
|
+
# @return [String, nil]
|
|
208
|
+
def dependent_locality = @hash["dependent_locality"]
|
|
209
|
+
|
|
210
|
+
# Town or city of the Royal Mail sorting office serving this record. Capitalised. Falls back
|
|
211
|
+
# to the LPI street's `street_town` when there is no delivery point; NULL when neither is
|
|
212
|
+
# present.
|
|
213
|
+
#
|
|
214
|
+
# @return [String, nil]
|
|
215
|
+
def post_town = @hash["post_town"]
|
|
216
|
+
|
|
217
|
+
# Royal Mail postcode from DPA, falling back to BLPU's `postcode_locator` when no Royal Mail
|
|
218
|
+
# delivery point exists. Uppercased, with single space between outward and inward portions.
|
|
219
|
+
#
|
|
220
|
+
# @return [String]
|
|
221
|
+
def postcode = @hash["postcode"]
|
|
222
|
+
|
|
223
|
+
# Royal Mail postal-user category. `S` Small user (e.g. a residential property), `L` Large
|
|
224
|
+
# user (e.g. a large commercial company).
|
|
225
|
+
#
|
|
226
|
+
# @return [String, nil]
|
|
227
|
+
def postcode_type = @hash["postcode_type"]
|
|
228
|
+
|
|
229
|
+
# Two-character code uniquely identifying an individual delivery point within a postcode
|
|
230
|
+
# (Royal Mail DPS).
|
|
231
|
+
#
|
|
232
|
+
# @return [String, nil]
|
|
233
|
+
def delivery_point_suffix = @hash["delivery_point_suffix"]
|
|
234
|
+
|
|
235
|
+
# Post Office Box number.
|
|
236
|
+
#
|
|
237
|
+
# @return [String, nil]
|
|
238
|
+
def po_box_number = @hash["po_box_number"]
|
|
239
|
+
|
|
240
|
+
# Welsh translation of `dependent_thoroughfare`. Requires `welsh_thoroughfare`.
|
|
241
|
+
#
|
|
242
|
+
# @return [String, nil]
|
|
243
|
+
def welsh_dependent_thoroughfare = @hash["welsh_dependent_thoroughfare"]
|
|
244
|
+
|
|
245
|
+
# Welsh translation of `thoroughfare`.
|
|
246
|
+
#
|
|
247
|
+
# @return [String, nil]
|
|
248
|
+
def welsh_thoroughfare = @hash["welsh_thoroughfare"]
|
|
249
|
+
|
|
250
|
+
# Welsh translation of `double_dependent_locality`. Requires `welsh_dependent_locality`.
|
|
251
|
+
#
|
|
252
|
+
# @return [String, nil]
|
|
253
|
+
def welsh_double_dependent_locality = @hash["welsh_double_dependent_locality"]
|
|
254
|
+
|
|
255
|
+
# Welsh translation of `dependent_locality`.
|
|
256
|
+
#
|
|
257
|
+
# @return [String, nil]
|
|
258
|
+
def welsh_dependent_locality = @hash["welsh_dependent_locality"]
|
|
259
|
+
|
|
260
|
+
# Welsh translation of `post_town`.
|
|
261
|
+
#
|
|
262
|
+
# @return [String, nil]
|
|
263
|
+
def welsh_post_town = @hash["welsh_post_town"]
|
|
264
|
+
|
|
265
|
+
# Date the PAF record was processed into the database.
|
|
266
|
+
#
|
|
267
|
+
# @return [String, nil]
|
|
268
|
+
def dpa_process_date = @hash["dpa_process_date"]
|
|
269
|
+
|
|
270
|
+
# Date the address record was matched to the Delivery Point Address.
|
|
271
|
+
#
|
|
272
|
+
# @return [String, nil]
|
|
273
|
+
def dpa_start_date = @hash["dpa_start_date"]
|
|
274
|
+
|
|
275
|
+
# Date the PAF record no longer existed in the database.
|
|
276
|
+
#
|
|
277
|
+
# @return [String, nil]
|
|
278
|
+
def dpa_end_date = @hash["dpa_end_date"]
|
|
279
|
+
|
|
280
|
+
# Date any attribute on the DPA record was last changed.
|
|
281
|
+
#
|
|
282
|
+
# @return [String, nil]
|
|
283
|
+
def dpa_last_update_date = @hash["dpa_last_update_date"]
|
|
284
|
+
|
|
285
|
+
# Date the PAF record was first loaded by GeoPlace.
|
|
286
|
+
#
|
|
287
|
+
# @return [String, nil]
|
|
288
|
+
def dpa_entry_date = @hash["dpa_entry_date"]
|
|
289
|
+
|
|
290
|
+
# Current AddressBase classification code, passed through verbatim at whatever level the
|
|
291
|
+
# custodian recorded. Usually tertiary (e.g. `RD03` semi-detached, `RD04` terraced, `RD06`
|
|
292
|
+
# self-contained flat, `CR01` retail), but can be quaternary (`LP03PA`), secondary (`RD`) or
|
|
293
|
+
# primary (`C`). Match on prefix rather than equality. Top-level categories: `R` Residential,
|
|
294
|
+
# `C` Commercial, `L` Land, `M` Military, `O` Other, `P` Parent shell, `U` Unclassified, `X`
|
|
295
|
+
# Dual use, `Z` Object of interest. NULL when no current classification row exists for the
|
|
296
|
+
# UPRN.
|
|
297
|
+
#
|
|
298
|
+
# @return [String, nil]
|
|
299
|
+
def classification_code = @hash["classification_code"]
|
|
300
|
+
|
|
301
|
+
# Name of the classification scheme applied to this record.
|
|
302
|
+
#
|
|
303
|
+
# @return [String, nil]
|
|
304
|
+
def class_scheme = @hash["class_scheme"]
|
|
305
|
+
|
|
306
|
+
# Version number of the classification scheme in use (e.g. `1.0`).
|
|
307
|
+
#
|
|
308
|
+
# @return [Float, nil]
|
|
309
|
+
def scheme_version = @hash["scheme_version"]
|
|
310
|
+
|
|
311
|
+
# Date the classification record was first loaded into the database.
|
|
312
|
+
#
|
|
313
|
+
# @return [String, nil]
|
|
314
|
+
def classification_start_date = @hash["classification_start_date"]
|
|
315
|
+
|
|
316
|
+
# Date the classification record ceased to exist.
|
|
317
|
+
#
|
|
318
|
+
# @return [String, nil]
|
|
319
|
+
def classification_end_date = @hash["classification_end_date"]
|
|
320
|
+
|
|
321
|
+
# Date of the most recent attribute change on the classification record.
|
|
322
|
+
#
|
|
323
|
+
# @return [String, nil]
|
|
324
|
+
def classification_last_update_date = @hash["classification_last_update_date"]
|
|
325
|
+
|
|
326
|
+
# Date the associated address record was inserted into the Local Authority database.
|
|
327
|
+
#
|
|
328
|
+
# @return [String, nil]
|
|
329
|
+
def classification_entry_date = @hash["classification_entry_date"]
|
|
330
|
+
|
|
331
|
+
# Date the organisation record was initially loaded into the database.
|
|
332
|
+
#
|
|
333
|
+
# @return [String, nil]
|
|
334
|
+
def organisation_start_date = @hash["organisation_start_date"]
|
|
335
|
+
|
|
336
|
+
# Date the organisation record ceased to exist.
|
|
337
|
+
#
|
|
338
|
+
# @return [String, nil]
|
|
339
|
+
def organisation_end_date = @hash["organisation_end_date"]
|
|
340
|
+
|
|
341
|
+
# Date of the most recent attribute change on the organisation record.
|
|
342
|
+
#
|
|
343
|
+
# @return [String, nil]
|
|
344
|
+
def organisation_last_update_date = @hash["organisation_last_update_date"]
|
|
345
|
+
|
|
346
|
+
# Date the UPRN was entered into the Local Authority database.
|
|
347
|
+
#
|
|
348
|
+
# @return [String, nil]
|
|
349
|
+
def organisation_entry_date = @hash["organisation_entry_date"]
|
|
350
|
+
|
|
351
|
+
# Unique identifier and primary key for the LPI record.
|
|
352
|
+
#
|
|
353
|
+
# @return [String, nil]
|
|
354
|
+
def lpi_key = @hash["lpi_key"]
|
|
355
|
+
|
|
356
|
+
# Language used for this LPI record. `ENG` English, `CYM` Welsh, `GAE` Gaelic (Scottish),
|
|
357
|
+
# `BIL` Bilingual.
|
|
358
|
+
#
|
|
359
|
+
# @return [String, nil]
|
|
360
|
+
def lpi_language = @hash["lpi_language"]
|
|
361
|
+
|
|
362
|
+
# Logical status of the LPI record. `1` Approved, `3` Alternative, `6` Provisional, `8`
|
|
363
|
+
# Historical.
|
|
364
|
+
#
|
|
365
|
+
# @return [Integer, nil]
|
|
366
|
+
def lpi_logical_status = @hash["lpi_logical_status"]
|
|
367
|
+
|
|
368
|
+
# Date the LPI was first loaded into the database.
|
|
369
|
+
#
|
|
370
|
+
# @return [String, nil]
|
|
371
|
+
def lpi_start_date = @hash["lpi_start_date"]
|
|
372
|
+
|
|
373
|
+
# Date the LPI record ceased to exist.
|
|
374
|
+
#
|
|
375
|
+
# @return [String, nil]
|
|
376
|
+
def lpi_end_date = @hash["lpi_end_date"]
|
|
377
|
+
|
|
378
|
+
# Date of the most recent attribute change on the LPI record.
|
|
379
|
+
#
|
|
380
|
+
# @return [String, nil]
|
|
381
|
+
def lpi_last_update_date = @hash["lpi_last_update_date"]
|
|
382
|
+
|
|
383
|
+
# Date the LPI record was inserted into the Local Authority database.
|
|
384
|
+
#
|
|
385
|
+
# @return [String, nil]
|
|
386
|
+
def lpi_entry_date = @hash["lpi_entry_date"]
|
|
387
|
+
|
|
388
|
+
# Number of the Secondary Addressable Object, or range start. Requires `pao_start_number` or
|
|
389
|
+
# `pao_text` to be present.
|
|
390
|
+
#
|
|
391
|
+
# @return [Integer, nil]
|
|
392
|
+
def sao_start_number = @hash["sao_start_number"]
|
|
393
|
+
|
|
394
|
+
# Suffix appended to `sao_start_number`. Requires `sao_start_number`.
|
|
395
|
+
#
|
|
396
|
+
# @return [String, nil]
|
|
397
|
+
def sao_start_suffix = @hash["sao_start_suffix"]
|
|
398
|
+
|
|
399
|
+
# End number of the SAO range. Requires `sao_start_number`.
|
|
400
|
+
#
|
|
401
|
+
# @return [Integer, nil]
|
|
402
|
+
def sao_end_number = @hash["sao_end_number"]
|
|
403
|
+
|
|
404
|
+
# Suffix appended to `sao_end_number`. Requires `sao_end_number`.
|
|
405
|
+
#
|
|
406
|
+
# @return [String, nil]
|
|
407
|
+
def sao_end_suffix = @hash["sao_end_suffix"]
|
|
408
|
+
|
|
409
|
+
# Building name or description for the Secondary Addressable Object (e.g. "FLAT 1", "UNIT B").
|
|
410
|
+
# Requires `pao_start_number` or `pao_text`.
|
|
411
|
+
#
|
|
412
|
+
# @return [String, nil]
|
|
413
|
+
def sao_text = @hash["sao_text"]
|
|
414
|
+
|
|
415
|
+
# Number of the Primary Addressable Object, or range start. Mandatory if `pao_text` is absent.
|
|
416
|
+
#
|
|
417
|
+
# @return [Integer, nil]
|
|
418
|
+
def pao_start_number = @hash["pao_start_number"]
|
|
419
|
+
|
|
420
|
+
# Suffix appended to `pao_start_number`. Requires `pao_start_number`.
|
|
421
|
+
#
|
|
422
|
+
# @return [String, nil]
|
|
423
|
+
def pao_start_suffix = @hash["pao_start_suffix"]
|
|
424
|
+
|
|
425
|
+
# End number of the PAO range. Requires `pao_start_number`.
|
|
426
|
+
#
|
|
427
|
+
# @return [Integer, nil]
|
|
428
|
+
def pao_end_number = @hash["pao_end_number"]
|
|
429
|
+
|
|
430
|
+
# Suffix appended to `pao_end_number`. Requires `pao_end_number`.
|
|
431
|
+
#
|
|
432
|
+
# @return [String, nil]
|
|
433
|
+
def pao_end_suffix = @hash["pao_end_suffix"]
|
|
434
|
+
|
|
435
|
+
# Building name or description for the Primary Addressable Object. Mandatory if
|
|
436
|
+
# `pao_start_number` is absent.
|
|
437
|
+
#
|
|
438
|
+
# @return [String, nil]
|
|
439
|
+
def pao_text = @hash["pao_text"]
|
|
440
|
+
|
|
441
|
+
# Unique Street Reference Number linking this LPI to its Street record. Up to 8 digits.
|
|
442
|
+
#
|
|
443
|
+
# @return [String, nil]
|
|
444
|
+
def usrn = @hash["usrn"]
|
|
445
|
+
|
|
446
|
+
# Confidence of the LPI to Street linkage. `1` Matched manually to the nearest accessible
|
|
447
|
+
# Street, `2` Matched spatially to the nearest USRN.
|
|
448
|
+
#
|
|
449
|
+
# @return [String, nil]
|
|
450
|
+
def usrn_match_indicator = @hash["usrn_match_indicator"]
|
|
451
|
+
|
|
452
|
+
# Third-level geographic area name such as island or property group.
|
|
453
|
+
#
|
|
454
|
+
# @return [String, nil]
|
|
455
|
+
def area_name = @hash["area_name"]
|
|
456
|
+
|
|
457
|
+
# Vertical position of the property (e.g. "GROUND FLOOR").
|
|
458
|
+
#
|
|
459
|
+
# @return [String, nil]
|
|
460
|
+
def level = @hash["level"]
|
|
461
|
+
|
|
462
|
+
# Whether the LPI corresponds to an entry in the official Street Name and Numbering register.
|
|
463
|
+
# `Y` Official address, `N` Unofficial address.
|
|
464
|
+
#
|
|
465
|
+
# @return [String, nil]
|
|
466
|
+
def official_flag = @hash["official_flag"]
|
|
467
|
+
|
|
468
|
+
# Description of the street record type. `1` Official designated Street Name, `2` Street
|
|
469
|
+
# Description, `3` Numbered Street, `4` Unofficial Street Description, `9` Description used
|
|
470
|
+
# for LLPG Access.
|
|
471
|
+
#
|
|
472
|
+
# @return [Integer, nil]
|
|
473
|
+
def street_record_type = @hash["street_record_type"]
|
|
474
|
+
|
|
475
|
+
# Code identifying the Street Naming and Numbering Authority or Local Highway Authority
|
|
476
|
+
# (DfT-allocated).
|
|
477
|
+
#
|
|
478
|
+
# @return [Integer, nil]
|
|
479
|
+
def swa_org_ref_naming = @hash["swa_org_ref_naming"]
|
|
480
|
+
|
|
481
|
+
# Current state of the street. `1` Under construction, `2` Open, `4` Permanently closed.
|
|
482
|
+
#
|
|
483
|
+
# @return [String, nil]
|
|
484
|
+
def street_state = @hash["street_state"]
|
|
485
|
+
|
|
486
|
+
# Date when the street achieved its current state.
|
|
487
|
+
#
|
|
488
|
+
# @return [String, nil]
|
|
489
|
+
def street_state_date = @hash["street_state_date"]
|
|
490
|
+
|
|
491
|
+
# Surface finish of the street. `1` Metalled, `2` Unmetalled, `3` Mixed.
|
|
492
|
+
#
|
|
493
|
+
# @return [String, nil]
|
|
494
|
+
def street_surface = @hash["street_surface"]
|
|
495
|
+
|
|
496
|
+
# Primary classification of the street record. `4` Pedestrian way or footpath, `6` Cycletrack
|
|
497
|
+
# or cycleway, `8` All vehicles, `9` Restricted byway, `10` Bridleway.
|
|
498
|
+
#
|
|
499
|
+
# @return [String, nil]
|
|
500
|
+
def street_classification = @hash["street_classification"]
|
|
501
|
+
|
|
502
|
+
# Date this street record or version was inserted into the database.
|
|
503
|
+
#
|
|
504
|
+
# @return [String, nil]
|
|
505
|
+
def street_start_date = @hash["street_start_date"]
|
|
506
|
+
|
|
507
|
+
# Date when any attribute of the street record was last changed.
|
|
508
|
+
#
|
|
509
|
+
# @return [String, nil]
|
|
510
|
+
def street_last_update_date = @hash["street_last_update_date"]
|
|
511
|
+
|
|
512
|
+
# Date the street record was entered into the Local Authority database.
|
|
513
|
+
#
|
|
514
|
+
# @return [String, nil]
|
|
515
|
+
def street_record_entry_date = @hash["street_record_entry_date"]
|
|
516
|
+
|
|
517
|
+
# X coordinate (BNG) for the street start point.
|
|
518
|
+
#
|
|
519
|
+
# @return [Float, nil]
|
|
520
|
+
def street_start_x = @hash["street_start_x"]
|
|
521
|
+
|
|
522
|
+
# Y coordinate (BNG) for the street start point.
|
|
523
|
+
#
|
|
524
|
+
# @return [Float, nil]
|
|
525
|
+
def street_start_y = @hash["street_start_y"]
|
|
526
|
+
|
|
527
|
+
# Latitude (ETRS89) for the street start point.
|
|
528
|
+
#
|
|
529
|
+
# @return [Float, nil]
|
|
530
|
+
def street_start_lat = @hash["street_start_lat"]
|
|
531
|
+
|
|
532
|
+
# Longitude (ETRS89) for the street start point.
|
|
533
|
+
#
|
|
534
|
+
# @return [Float, nil]
|
|
535
|
+
def street_start_long = @hash["street_start_long"]
|
|
536
|
+
|
|
537
|
+
# X coordinate (BNG) for the street end point.
|
|
538
|
+
#
|
|
539
|
+
# @return [Float, nil]
|
|
540
|
+
def street_end_x = @hash["street_end_x"]
|
|
541
|
+
|
|
542
|
+
# Y coordinate (BNG) for the street end point.
|
|
543
|
+
#
|
|
544
|
+
# @return [Float, nil]
|
|
545
|
+
def street_end_y = @hash["street_end_y"]
|
|
546
|
+
|
|
547
|
+
# Latitude (ETRS89) for the street end point.
|
|
548
|
+
#
|
|
549
|
+
# @return [Float, nil]
|
|
550
|
+
def street_end_lat = @hash["street_end_lat"]
|
|
551
|
+
|
|
552
|
+
# Longitude (ETRS89) for the street end point.
|
|
553
|
+
#
|
|
554
|
+
# @return [Float, nil]
|
|
555
|
+
def street_end_long = @hash["street_end_long"]
|
|
556
|
+
|
|
557
|
+
# Accuracy of street-coordinate data capture, in metres.
|
|
558
|
+
#
|
|
559
|
+
# @return [Integer, nil]
|
|
560
|
+
def street_tolerance = @hash["street_tolerance"]
|
|
561
|
+
|
|
562
|
+
# Street name, description or street number.
|
|
563
|
+
#
|
|
564
|
+
# @return [String, nil]
|
|
565
|
+
def street_description = @hash["street_description"]
|
|
566
|
+
|
|
567
|
+
# Geographical area within a town.
|
|
568
|
+
#
|
|
569
|
+
# @return [String, nil]
|
|
570
|
+
def street_locality = @hash["street_locality"]
|
|
571
|
+
|
|
572
|
+
# Name of the town. Required for Street Record Types `1` and `2`; optional for types `3`, `4`
|
|
573
|
+
# and `9`.
|
|
574
|
+
#
|
|
575
|
+
# @return [String, nil]
|
|
576
|
+
def street_town = @hash["street_town"]
|
|
577
|
+
|
|
578
|
+
# Local Highway Authority name (administrative area / county / unitary authority). Field name
|
|
579
|
+
# spelling preserved verbatim from OS (`ADMINSTRATIVE_AREA`).
|
|
580
|
+
#
|
|
581
|
+
# @return [String, nil]
|
|
582
|
+
def adminstrative_area = @hash["adminstrative_area"]
|
|
583
|
+
|
|
584
|
+
# Language of the street descriptor. `ENG` English, `CYM` Welsh, `GAE` Gaelic (Scottish),
|
|
585
|
+
# `BIL` Bilingual.
|
|
586
|
+
#
|
|
587
|
+
# @return [String, nil]
|
|
588
|
+
def sd_language = @hash["sd_language"]
|
|
589
|
+
|
|
590
|
+
# Date the street descriptor record was first created in the database.
|
|
591
|
+
#
|
|
592
|
+
# @return [String, nil]
|
|
593
|
+
def sd_start_date = @hash["sd_start_date"]
|
|
594
|
+
|
|
595
|
+
# Date the street descriptor record ceased to exist.
|
|
596
|
+
#
|
|
597
|
+
# @return [String, nil]
|
|
598
|
+
def sd_end_date = @hash["sd_end_date"]
|
|
599
|
+
|
|
600
|
+
# Date of the most recent attribute change on the street descriptor record.
|
|
601
|
+
#
|
|
602
|
+
# @return [String, nil]
|
|
603
|
+
def sd_last_update_date = @hash["sd_last_update_date"]
|
|
604
|
+
|
|
605
|
+
# Date the street descriptor record was entered into the Local Authority database.
|
|
606
|
+
#
|
|
607
|
+
# @return [String, nil]
|
|
608
|
+
def sd_entry_date = @hash["sd_entry_date"]
|
|
609
|
+
|
|
610
|
+
# OS MasterMap Topography Layer TOID (cross-reference source `7666MT`) linked to the UPRN.
|
|
611
|
+
#
|
|
612
|
+
# @return [String, nil]
|
|
613
|
+
def toid = @hash["toid"]
|
|
614
|
+
|
|
615
|
+
# OS MasterMap Address Layer 2 TOID (cross-reference source `7666MA`) linked to the UPRN.
|
|
616
|
+
#
|
|
617
|
+
# @return [String, nil]
|
|
618
|
+
def toid_address = @hash["toid_address"]
|
|
619
|
+
|
|
620
|
+
# OS MasterMap Highways TOID (cross-reference source `7666MI`) linked to the UPRN.
|
|
621
|
+
#
|
|
622
|
+
# @return [String, nil]
|
|
623
|
+
def toid_highways = @hash["toid_highways"]
|
|
624
|
+
|
|
625
|
+
# Centrally created Valuation Office Agency council tax reference (cross-reference source
|
|
626
|
+
# `7666VC`) linked to the UPRN.
|
|
627
|
+
#
|
|
628
|
+
# @return [String, nil]
|
|
629
|
+
def council_tax_ref = @hash["council_tax_ref"]
|
|
630
|
+
|
|
631
|
+
# Centrally created Valuation Office Agency non-domestic rates reference (cross-reference
|
|
632
|
+
# source `7666VN`) linked to the UPRN.
|
|
633
|
+
#
|
|
634
|
+
# @return [String, nil]
|
|
635
|
+
def ndr_ref = @hash["ndr_ref"]
|
|
636
|
+
|
|
637
|
+
# Office for National Statistics ward code (cross-reference source `7666OW`) linked to the
|
|
638
|
+
# UPRN.
|
|
639
|
+
#
|
|
640
|
+
# @return [String, nil]
|
|
641
|
+
def ons_ward_code = @hash["ons_ward_code"]
|
|
642
|
+
|
|
643
|
+
# Office for National Statistics parish code (cross-reference source `7666OP`) linked to the
|
|
644
|
+
# UPRN.
|
|
645
|
+
#
|
|
646
|
+
# @return [String, nil]
|
|
647
|
+
def ons_parish_code = @hash["ons_parish_code"]
|
|
648
|
+
|
|
649
|
+
# Stable identifier for the record, `abp_` prefixed to the UPRN. Accepted by the resolve
|
|
650
|
+
# endpoints.
|
|
651
|
+
#
|
|
652
|
+
# @return [String]
|
|
653
|
+
def id = @hash["id"]
|
|
654
|
+
|
|
655
|
+
# Dataset this record belongs to.
|
|
656
|
+
#
|
|
657
|
+
# @return [String]
|
|
658
|
+
def dataset = @hash["dataset"]
|
|
659
|
+
|
|
660
|
+
# ISO 3166-1 alpha-3 code for the country covered by the dataset. Always `GBR` - use `country`
|
|
661
|
+
# for the England / Wales / Scotland split.
|
|
662
|
+
#
|
|
663
|
+
# @return [String]
|
|
664
|
+
def country_iso = @hash["country_iso"]
|
|
665
|
+
|
|
666
|
+
# Single-line address used for autocomplete suggestions: the address line components, then the
|
|
667
|
+
# post town, then the outward half of the postcode, comma separated. Repeated components are
|
|
668
|
+
# collapsed.
|
|
669
|
+
#
|
|
670
|
+
# @return [String]
|
|
671
|
+
def suggestion_line = @hash["suggestion_line"]
|
|
672
|
+
end
|
|
673
|
+
end
|
|
674
|
+
end
|