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,283 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module AddressZen
|
|
6
|
+
module Types
|
|
7
|
+
# AddressBase Core Address
|
|
8
|
+
#
|
|
9
|
+
# An address from Ordnance Survey's AddressBase Core, a flat cut of the approved addresses in
|
|
10
|
+
# Great Britain. Each record is one UPRN drawn from the local authority gazetteers: the National
|
|
11
|
+
# Land and Property Gazetteer for England and Wales, the One Scotland Address Gazetteer for
|
|
12
|
+
# Scotland. It carries the Royal Mail delivery point where one has been matched, property level
|
|
13
|
+
# coordinates, a classification (`classification_code`), the key identifiers (`uprn`,
|
|
14
|
+
# `parent_uprn`, `udprn`, `usrn`, `toid`), the contributing authority (`gss_code`), coordinate
|
|
15
|
+
# quality (`rpc`) and the change the latest supply applied (`change_code`). Ordnance Survey
|
|
16
|
+
# publishes around 35 million records and refreshes them weekly.
|
|
17
|
+
#
|
|
18
|
+
# How it differs from the neighbouring datasets:
|
|
19
|
+
#
|
|
20
|
+
# - **AddressBase Premium** (`abp`) is the full gazetteer: around 40 million UPRNs including
|
|
21
|
+
# historic and provisional records, the local authority address breakdown (`pao_*`, `sao_*`),
|
|
22
|
+
# lifecycle (`logical_status`, `blpu_state`), Welsh alternatives, the street record and cross
|
|
23
|
+
# references to the Valuation Office Agency and ONS, refreshed every six weeks. AddressBase
|
|
24
|
+
# Core carries none of these. Use it when one approved address per UPRN, with coordinates and
|
|
25
|
+
# a classification, is enough.
|
|
26
|
+
# - **Royal Mail PAF** (`paf`) lists delivery points only, keyed by UDPRN. AddressBase Core keys
|
|
27
|
+
# on UPRN and also holds non-postal objects (substations, car parks, land parcels, parent
|
|
28
|
+
# shells) with no delivery point. On those records `udprn` is `0` and `delivery_point_suffix`
|
|
29
|
+
# is empty. Where a record matches PAF, `ab` renders the same `line_1` to `line_3` as `paf`
|
|
30
|
+
# for that UDPRN, bar a handful of records with a trailing range in the building name, which
|
|
31
|
+
# AddressBase Core keeps whole.
|
|
32
|
+
# - The Ordnance Survey end of life notice for autumn 2027 covers AddressBase and AddressBase
|
|
33
|
+
# Plus, not AddressBase Core.
|
|
34
|
+
class AbAddress < Model
|
|
35
|
+
# Globally unique internally generated identifier for an address
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
def id = @hash["id"]
|
|
39
|
+
|
|
40
|
+
# 3 letter country code (ISO 3166-1)
|
|
41
|
+
#
|
|
42
|
+
# @return [String]
|
|
43
|
+
def country_iso = @hash["country_iso"]
|
|
44
|
+
|
|
45
|
+
# Indicates the provenance of an address
|
|
46
|
+
#
|
|
47
|
+
# @return [String]
|
|
48
|
+
def dataset = @hash["dataset"]
|
|
49
|
+
|
|
50
|
+
# Language represented by 2 letter ISO Code (639-1)
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
def language = @hash["language"]
|
|
54
|
+
|
|
55
|
+
# First Address Line. Often contains premise and thoroughfare information. In the case of a
|
|
56
|
+
# commercial premise, the first line is always the full name of the registered organisation.
|
|
57
|
+
# Never empty.
|
|
58
|
+
#
|
|
59
|
+
# @return [String]
|
|
60
|
+
def line_1 = @hash["line_1"]
|
|
61
|
+
|
|
62
|
+
# Second Address Line. Often contains thoroughfare and locality information. May be empty
|
|
63
|
+
#
|
|
64
|
+
# @return [String]
|
|
65
|
+
def line_2 = @hash["line_2"]
|
|
66
|
+
|
|
67
|
+
# Third address line. Takes the address elements left after `line_1` and `line_2` are filled;
|
|
68
|
+
# where the address needs more than three lines the remaining elements are joined into
|
|
69
|
+
# `line_3`, comma separated. May be empty.
|
|
70
|
+
#
|
|
71
|
+
# @return [String]
|
|
72
|
+
def line_3 = @hash["line_3"]
|
|
73
|
+
|
|
74
|
+
# A pre-computed string which sensibly combines the building name, sub-building and building
|
|
75
|
+
# number fields into a single, simple premise string. Ideal if you want to pull premise
|
|
76
|
+
# information and thoroughfare information separately instead of using the address lines.
|
|
77
|
+
#
|
|
78
|
+
# @return [String]
|
|
79
|
+
def premise = @hash["premise"]
|
|
80
|
+
|
|
81
|
+
# Unique Property Reference Number (UPRN) assigned by the LLPG Custodian or Ordnance Survey.
|
|
82
|
+
#
|
|
83
|
+
# @return [String]
|
|
84
|
+
def uprn = @hash["uprn"]
|
|
85
|
+
|
|
86
|
+
# Royal Mail's Unique Delivery Point Reference Number (UDPRN). `0` where the record has no
|
|
87
|
+
# matching PAF delivery point.
|
|
88
|
+
#
|
|
89
|
+
# @return [Integer]
|
|
90
|
+
def udprn = @hash["udprn"]
|
|
91
|
+
|
|
92
|
+
# UPRN of the parent record where a parent-child relationship exists. Empty where the record
|
|
93
|
+
# has no parent.
|
|
94
|
+
#
|
|
95
|
+
# @return [String]
|
|
96
|
+
def parent_uprn = @hash["parent_uprn"]
|
|
97
|
+
|
|
98
|
+
# Unique Street Reference Number assigned by the Street Name and Numbering Custodian or by
|
|
99
|
+
# Ordnance Survey, depending on the address record.
|
|
100
|
+
#
|
|
101
|
+
# @return [Integer]
|
|
102
|
+
def usrn = @hash["usrn"]
|
|
103
|
+
|
|
104
|
+
# The Topographic Identifier taken from OS MasterMap Topography Layer. This TOID is assigned
|
|
105
|
+
# to the UPRN by performing a spatial intersection between the two identifiers. It consists of
|
|
106
|
+
# the letters 'osgb' followed by up to sixteen digits. May be empty.
|
|
107
|
+
#
|
|
108
|
+
# @return [String]
|
|
109
|
+
def toid = @hash["toid"]
|
|
110
|
+
|
|
111
|
+
# A code that describes the classification of the address record to a maximum of a secondary
|
|
112
|
+
# level. The first letter is the primary class (e.g. `R` residential, `C` commercial, `L`
|
|
113
|
+
# land), the second the secondary class (e.g. `RD` dwelling).
|
|
114
|
+
#
|
|
115
|
+
# @return [String]
|
|
116
|
+
def classification_code = @hash["classification_code"]
|
|
117
|
+
|
|
118
|
+
# A value in metres defining the x location in accordance with the British National Grid.
|
|
119
|
+
#
|
|
120
|
+
# @return [Float]
|
|
121
|
+
def eastings = @hash["eastings"]
|
|
122
|
+
|
|
123
|
+
# A value in metres defining the y location in accordance with the British National Grid.
|
|
124
|
+
#
|
|
125
|
+
# @return [Float]
|
|
126
|
+
def northings = @hash["northings"]
|
|
127
|
+
|
|
128
|
+
# A value defining the Latitude location in accordance with the ETRS89 coordinate reference
|
|
129
|
+
# system.
|
|
130
|
+
#
|
|
131
|
+
# @return [Float]
|
|
132
|
+
def latitude = @hash["latitude"]
|
|
133
|
+
|
|
134
|
+
# A value defining the Longitude location in accordance with the ETRS89 coordinate reference
|
|
135
|
+
# system.
|
|
136
|
+
#
|
|
137
|
+
# @return [Float]
|
|
138
|
+
def longitude = @hash["longitude"]
|
|
139
|
+
|
|
140
|
+
# A single attribute containing text concatenation of the address elements separated by a
|
|
141
|
+
# comma.
|
|
142
|
+
#
|
|
143
|
+
# @return [String]
|
|
144
|
+
def single_address_line = @hash["single_address_line"]
|
|
145
|
+
|
|
146
|
+
# Street / Road name for the address record.
|
|
147
|
+
#
|
|
148
|
+
# @return [String]
|
|
149
|
+
def street_name = @hash["street_name"]
|
|
150
|
+
|
|
151
|
+
# A locality defines an area or geographical identifier within a town, village or hamlet.
|
|
152
|
+
# Locality represents the lower level geographical area. The locality field should be used in
|
|
153
|
+
# conjunction with the town name and street description fields to uniquely identify geographic
|
|
154
|
+
# area where there may be more than one within an administrative area.
|
|
155
|
+
#
|
|
156
|
+
# @return [String]
|
|
157
|
+
def locality = @hash["locality"]
|
|
158
|
+
|
|
159
|
+
# Geographical town name assigned by the Local Authority. Note this can differ from the post
|
|
160
|
+
# town assigned by Royal Mail.
|
|
161
|
+
#
|
|
162
|
+
# @return [String]
|
|
163
|
+
def town_name = @hash["town_name"]
|
|
164
|
+
|
|
165
|
+
# A two-character code uniquely identifying an individual delivery point within a postcode,
|
|
166
|
+
# assigned by Royal Mail. May be empty.
|
|
167
|
+
#
|
|
168
|
+
# @return [String]
|
|
169
|
+
def delivery_point_suffix = @hash["delivery_point_suffix"]
|
|
170
|
+
|
|
171
|
+
# The town or city in which the Royal Mail sorting office servicing this address record is
|
|
172
|
+
# located.
|
|
173
|
+
#
|
|
174
|
+
# @return [String]
|
|
175
|
+
def post_town = @hash["post_town"]
|
|
176
|
+
|
|
177
|
+
# The Office for National Statistics Governmental Statistical Service (GSS) code representing
|
|
178
|
+
# the contributing Local Authority.
|
|
179
|
+
#
|
|
180
|
+
# @return [String]
|
|
181
|
+
def gss_code = @hash["gss_code"]
|
|
182
|
+
|
|
183
|
+
# Representative Point Code describes the accuracy of the coordinate that has been allocated
|
|
184
|
+
# to the UPRN as indicated by the Local Authority and enhanced using large scale OS data.
|
|
185
|
+
#
|
|
186
|
+
# @return [Integer]
|
|
187
|
+
def rpc = @hash["rpc"]
|
|
188
|
+
|
|
189
|
+
# The latest date on which any of the attributes on this record were last changed.
|
|
190
|
+
#
|
|
191
|
+
# @return [String]
|
|
192
|
+
def last_update_date = @hash["last_update_date"]
|
|
193
|
+
|
|
194
|
+
# Third level of geographic area name to record island names where appropriate. May be empty.
|
|
195
|
+
#
|
|
196
|
+
# @return [String]
|
|
197
|
+
def island = @hash["island"]
|
|
198
|
+
|
|
199
|
+
# The type of change last applied to the record. `I` insert, `U` update, `D` delete.
|
|
200
|
+
#
|
|
201
|
+
# @return [String]
|
|
202
|
+
def change_code = @hash["change_code"]
|
|
203
|
+
|
|
204
|
+
# The building name is a description applied to a single address or a group of addresses. May
|
|
205
|
+
# be empty.
|
|
206
|
+
#
|
|
207
|
+
# @return [String]
|
|
208
|
+
def building_name = @hash["building_name"]
|
|
209
|
+
|
|
210
|
+
# The building number is a number or range of numbers given to a single address or a group of
|
|
211
|
+
# addresses. May be empty.
|
|
212
|
+
#
|
|
213
|
+
# @return [String]
|
|
214
|
+
def building_number = @hash["building_number"]
|
|
215
|
+
|
|
216
|
+
# The sub-building name and/or number for the address record. May be empty.
|
|
217
|
+
#
|
|
218
|
+
# @return [String]
|
|
219
|
+
def sub_building = @hash["sub_building"]
|
|
220
|
+
|
|
221
|
+
# A postcode assigned by Royal Mail for the address record.
|
|
222
|
+
#
|
|
223
|
+
# @return [String]
|
|
224
|
+
def postcode = @hash["postcode"]
|
|
225
|
+
|
|
226
|
+
# Text concatenation of 'PO BOX' and the Post Office Box (PO Box) number or 'BFPO' and the
|
|
227
|
+
# British Forces Post Office number. May be empty.
|
|
228
|
+
#
|
|
229
|
+
# @return [String]
|
|
230
|
+
def po_box = @hash["po_box"]
|
|
231
|
+
|
|
232
|
+
# The organisation name is the business name given, when appropriate, to an address record.
|
|
233
|
+
# May be empty.
|
|
234
|
+
#
|
|
235
|
+
# @return [String]
|
|
236
|
+
def organisation = @hash["organisation"]
|
|
237
|
+
|
|
238
|
+
# Full country names (ISO 3166)
|
|
239
|
+
#
|
|
240
|
+
# @return [String]
|
|
241
|
+
def country = @hash["country"]
|
|
242
|
+
|
|
243
|
+
# Since postal, administrative or traditional counties may not apply to some addresses, the
|
|
244
|
+
# county field is designed to return whatever county data is available. Normally, the postal
|
|
245
|
+
# county is returned. If this is not present, the county field will fall back to the
|
|
246
|
+
# administrative county. If the administrative county is also not present, the county field
|
|
247
|
+
# will fall back to the traditional county. May be empty in cases where no administrative,
|
|
248
|
+
# postal or traditional county present.
|
|
249
|
+
#
|
|
250
|
+
# @return [String]
|
|
251
|
+
def county = @hash["county"]
|
|
252
|
+
|
|
253
|
+
# The current district/unitary authority to which the postcode has been assigned.
|
|
254
|
+
#
|
|
255
|
+
# @return [String]
|
|
256
|
+
def district = @hash["district"]
|
|
257
|
+
|
|
258
|
+
# The current administrative/electoral area to which the postcode has been assigned. May be
|
|
259
|
+
# empty for a small number of addresses.
|
|
260
|
+
#
|
|
261
|
+
# @return [String]
|
|
262
|
+
def ward = @hash["ward"]
|
|
263
|
+
|
|
264
|
+
# Traditional counties are provided by the Association of British Counties. It is historical
|
|
265
|
+
# data, and can date from the 1800s. May be empty.
|
|
266
|
+
#
|
|
267
|
+
# @return [String]
|
|
268
|
+
def traditional_county = @hash["traditional_county"]
|
|
269
|
+
|
|
270
|
+
# The current administrative county to which the postcode has been assigned.
|
|
271
|
+
#
|
|
272
|
+
# @return [String]
|
|
273
|
+
def administrative_county = @hash["administrative_county"]
|
|
274
|
+
|
|
275
|
+
# Postal counties were used for the distribution of mail before the Postcode system was
|
|
276
|
+
# introduced in the 1970s. The Former Postal County was the Administrative County at the time.
|
|
277
|
+
# This data rarely changes. May be empty.
|
|
278
|
+
#
|
|
279
|
+
# @return [String]
|
|
280
|
+
def postal_county = @hash["postal_county"]
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
end
|