ideal_postcodes 2.0.1 → 3.0.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 +4 -4
- data/CHANGELOG.md +3 -16
- data/LICENSE +1 -21
- data/README.md +13 -332
- data/lib/ideal_postcodes/base_client.rb +88 -0
- data/lib/ideal_postcodes/client.rb +42 -0
- data/lib/ideal_postcodes/errors.rb +59 -0
- data/lib/ideal_postcodes/generated.rb +83 -0
- data/lib/ideal_postcodes/model.rb +73 -0
- data/lib/ideal_postcodes/operations.rb +866 -0
- data/lib/ideal_postcodes/responses/address_response.rb +19 -0
- data/lib/ideal_postcodes/responses/api_key_details_response.rb +21 -0
- data/lib/ideal_postcodes/responses/api_key_response.rb +21 -0
- data/lib/ideal_postcodes/responses/api_key_usage_response.rb +21 -0
- data/lib/ideal_postcodes/responses/autocomplete_response.rb +19 -0
- data/lib/ideal_postcodes/responses/cleanse_response.rb +31 -0
- data/lib/ideal_postcodes/responses/config_response.rb +21 -0
- data/lib/ideal_postcodes/responses/configs_response.rb +21 -0
- data/lib/ideal_postcodes/responses/delete_config_response.rb +19 -0
- data/lib/ideal_postcodes/responses/delete_licensee_response.rb +19 -0
- data/lib/ideal_postcodes/responses/email_response.rb +31 -0
- data/lib/ideal_postcodes/responses/gbr_resolve_address_response.rb +21 -0
- data/lib/ideal_postcodes/responses/licensee_response.rb +21 -0
- data/lib/ideal_postcodes/responses/licensees_response.rb +21 -0
- data/lib/ideal_postcodes/responses/phone_number_response.rb +31 -0
- data/lib/ideal_postcodes/responses/place_response.rb +19 -0
- data/lib/ideal_postcodes/responses/postcode_response.rb +30 -0
- data/lib/ideal_postcodes/responses/resolve_place_response.rb +24 -0
- data/lib/ideal_postcodes/transport.rb +61 -0
- data/lib/ideal_postcodes/types/ab_address.rb +283 -0
- data/lib/ideal_postcodes/types/abp_address.rb +674 -0
- data/lib/ideal_postcodes/types/address.rb +290 -0
- data/lib/ideal_postcodes/types/address_list_item.rb +592 -0
- data/lib/ideal_postcodes/types/address_result.rb +24 -0
- data/lib/ideal_postcodes/types/address_suggestion.rb +27 -0
- data/lib/ideal_postcodes/types/api_key.rb +27 -0
- data/lib/ideal_postcodes/types/api_key_automated_topup.rb +17 -0
- data/lib/ideal_postcodes/types/api_key_current_purchase.rb +27 -0
- data/lib/ideal_postcodes/types/api_key_daily_limit.rb +21 -0
- data/lib/ideal_postcodes/types/api_key_datasets.rb +202 -0
- data/lib/ideal_postcodes/types/api_key_details.rb +90 -0
- data/lib/ideal_postcodes/types/api_key_individual_limit.rb +16 -0
- data/lib/ideal_postcodes/types/api_key_monthly_limit.rb +21 -0
- data/lib/ideal_postcodes/types/api_key_notifications.rb +35 -0
- data/lib/ideal_postcodes/types/autocomplete_result.rb +25 -0
- data/lib/ideal_postcodes/types/available_context.rb +35 -0
- data/lib/ideal_postcodes/types/ban_address.rb +179 -0
- data/lib/ideal_postcodes/types/bev_address.rb +288 -0
- data/lib/ideal_postcodes/types/cannar_address.rb +297 -0
- data/lib/ideal_postcodes/types/carrier.rb +31 -0
- data/lib/ideal_postcodes/types/config.rb +34 -0
- data/lib/ideal_postcodes/types/configs_result.rb +15 -0
- data/lib/ideal_postcodes/types/deleted_config.rb +13 -0
- data/lib/ideal_postcodes/types/deleted_licensee.rb +13 -0
- data/lib/ideal_postcodes/types/ecad_address.rb +393 -0
- data/lib/ideal_postcodes/types/ecaf_address.rb +204 -0
- data/lib/ideal_postcodes/types/email.rb +45 -0
- data/lib/ideal_postcodes/types/fodbosa_address.rb +201 -0
- data/lib/ideal_postcodes/types/gbr_cleanse_match.rb +70 -0
- data/lib/ideal_postcodes/types/gbr_cleanse_no_match.rb +47 -0
- data/lib/ideal_postcodes/types/geonames_place.rb +153 -0
- data/lib/ideal_postcodes/types/gnaf_address.rb +463 -0
- data/lib/ideal_postcodes/types/here_address.rb +174 -0
- data/lib/ideal_postcodes/types/invalid_phone_number.rb +50 -0
- data/lib/ideal_postcodes/types/kadaster_address.rb +480 -0
- data/lib/ideal_postcodes/types/kartverket_address.rb +342 -0
- data/lib/ideal_postcodes/types/key_usage_day.rb +16 -0
- data/lib/ideal_postcodes/types/key_usage_result.rb +36 -0
- data/lib/ideal_postcodes/types/licensee.rb +50 -0
- data/lib/ideal_postcodes/types/licensee_daily_usage.rb +29 -0
- data/lib/ideal_postcodes/types/licensees_result.rb +23 -0
- data/lib/ideal_postcodes/types/mois_address.rb +440 -0
- data/lib/ideal_postcodes/types/mr_address.rb +99 -0
- data/lib/ideal_postcodes/types/native_record.rb +368 -0
- data/lib/ideal_postcodes/types/nyb_address.rb +99 -0
- data/lib/ideal_postcodes/types/paf_address.rb +96 -0
- data/lib/ideal_postcodes/types/pafa_address.rb +104 -0
- data/lib/ideal_postcodes/types/pafw_address.rb +99 -0
- data/lib/ideal_postcodes/types/phone_number.rb +50 -0
- data/lib/ideal_postcodes/types/place.rb +79 -0
- data/lib/ideal_postcodes/types/place_result.rb +21 -0
- data/lib/ideal_postcodes/types/place_suggestion.rb +32 -0
- data/lib/ideal_postcodes/types/sdfi_address.rb +520 -0
- data/lib/ideal_postcodes/types/swt_address.rb +247 -0
- data/lib/ideal_postcodes/types/uk_address_suggestion.rb +45 -0
- data/lib/ideal_postcodes/types/uk_address_suggestion_urls.rb +21 -0
- data/lib/ideal_postcodes/types/unknown_email.rb +43 -0
- data/lib/ideal_postcodes/types/upujp_address.rb +763 -0
- data/lib/ideal_postcodes/types/usps_address.rb +294 -0
- data/lib/ideal_postcodes/version.rb +5 -0
- data/lib/ideal_postcodes.rb +14 -2
- data/sig/ideal_postcodes/base_client.rbs +40 -0
- data/sig/ideal_postcodes/client.rbs +35 -0
- data/sig/ideal_postcodes/errors.rbs +27 -0
- data/sig/ideal_postcodes/model.rbs +37 -0
- data/sig/ideal_postcodes/operations.rbs +207 -0
- data/sig/ideal_postcodes/responses/address_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/api_key_details_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/api_key_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/api_key_usage_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/autocomplete_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/cleanse_response.rbs +19 -0
- data/sig/ideal_postcodes/responses/config_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/configs_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/delete_config_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/delete_licensee_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/email_response.rbs +19 -0
- data/sig/ideal_postcodes/responses/gbr_resolve_address_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/licensee_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/licensees_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/phone_number_response.rbs +19 -0
- data/sig/ideal_postcodes/responses/place_response.rbs +13 -0
- data/sig/ideal_postcodes/responses/postcode_response.rbs +16 -0
- data/sig/ideal_postcodes/responses/resolve_place_response.rbs +13 -0
- data/sig/ideal_postcodes/transport.rbs +39 -0
- data/sig/ideal_postcodes/types/ab_address.rbs +57 -0
- data/sig/ideal_postcodes/types/abp_address.rbs +126 -0
- data/sig/ideal_postcodes/types/address.rbs +136 -0
- data/sig/ideal_postcodes/types/address_list_item.rbs +160 -0
- data/sig/ideal_postcodes/types/address_result.rbs +12 -0
- data/sig/ideal_postcodes/types/address_suggestion.rbs +11 -0
- data/sig/ideal_postcodes/types/api_key.rbs +11 -0
- data/sig/ideal_postcodes/types/api_key_automated_topup.rbs +9 -0
- data/sig/ideal_postcodes/types/api_key_current_purchase.rbs +11 -0
- data/sig/ideal_postcodes/types/api_key_daily_limit.rbs +10 -0
- data/sig/ideal_postcodes/types/api_key_datasets.rbs +46 -0
- data/sig/ideal_postcodes/types/api_key_details.rbs +22 -0
- data/sig/ideal_postcodes/types/api_key_individual_limit.rbs +9 -0
- data/sig/ideal_postcodes/types/api_key_monthly_limit.rbs +10 -0
- data/sig/ideal_postcodes/types/api_key_notifications.rbs +13 -0
- data/sig/ideal_postcodes/types/autocomplete_result.rbs +15 -0
- data/sig/ideal_postcodes/types/available_context.rbs +13 -0
- data/sig/ideal_postcodes/types/ban_address.rbs +46 -0
- data/sig/ideal_postcodes/types/bev_address.rbs +67 -0
- data/sig/ideal_postcodes/types/cannar_address.rbs +62 -0
- data/sig/ideal_postcodes/types/carrier.rbs +14 -0
- data/sig/ideal_postcodes/types/config.rbs +14 -0
- data/sig/ideal_postcodes/types/configs_result.rbs +9 -0
- data/sig/ideal_postcodes/types/deleted_config.rbs +9 -0
- data/sig/ideal_postcodes/types/deleted_licensee.rbs +9 -0
- data/sig/ideal_postcodes/types/ecad_address.rbs +84 -0
- data/sig/ideal_postcodes/types/ecaf_address.rbs +45 -0
- data/sig/ideal_postcodes/types/email.rbs +16 -0
- data/sig/ideal_postcodes/types/fodbosa_address.rbs +43 -0
- data/sig/ideal_postcodes/types/gbr_cleanse_match.rbs +25 -0
- data/sig/ideal_postcodes/types/gbr_cleanse_no_match.rbs +28 -0
- data/sig/ideal_postcodes/types/geonames_place.rbs +42 -0
- data/sig/ideal_postcodes/types/gnaf_address.rbs +104 -0
- data/sig/ideal_postcodes/types/here_address.rbs +37 -0
- data/sig/ideal_postcodes/types/invalid_phone_number.rbs +17 -0
- data/sig/ideal_postcodes/types/kadaster_address.rbs +98 -0
- data/sig/ideal_postcodes/types/kartverket_address.rbs +78 -0
- data/sig/ideal_postcodes/types/key_usage_day.rbs +10 -0
- data/sig/ideal_postcodes/types/key_usage_result.rbs +13 -0
- data/sig/ideal_postcodes/types/licensee.rbs +17 -0
- data/sig/ideal_postcodes/types/licensee_daily_usage.rbs +12 -0
- data/sig/ideal_postcodes/types/licensees_result.rbs +11 -0
- data/sig/ideal_postcodes/types/mois_address.rbs +97 -0
- data/sig/ideal_postcodes/types/mr_address.rbs +27 -0
- data/sig/ideal_postcodes/types/native_record.rbs +34 -0
- data/sig/ideal_postcodes/types/nyb_address.rbs +27 -0
- data/sig/ideal_postcodes/types/paf_address.rbs +27 -0
- data/sig/ideal_postcodes/types/pafa_address.rbs +27 -0
- data/sig/ideal_postcodes/types/pafw_address.rbs +27 -0
- data/sig/ideal_postcodes/types/phone_number.rbs +17 -0
- data/sig/ideal_postcodes/types/place.rbs +29 -0
- data/sig/ideal_postcodes/types/place_result.rbs +15 -0
- data/sig/ideal_postcodes/types/place_suggestion.rbs +12 -0
- data/sig/ideal_postcodes/types/sdfi_address.rbs +108 -0
- data/sig/ideal_postcodes/types/swt_address.rbs +57 -0
- data/sig/ideal_postcodes/types/uk_address_suggestion.rbs +13 -0
- data/sig/ideal_postcodes/types/uk_address_suggestion_urls.rbs +10 -0
- data/sig/ideal_postcodes/types/unknown_email.rbs +16 -0
- data/sig/ideal_postcodes/types/upujp_address.rbs +156 -0
- data/sig/ideal_postcodes/types/usps_address.rbs +63 -0
- metadata +186 -174
- data/.github/workflows/ci.yml +0 -22
- data/Gemfile +0 -2
- data/Rakefile +0 -15
- data/ideal-postcodes-ruby.gemspec +0 -25
- data/lib/idealpostcodes/address.rb +0 -31
- data/lib/idealpostcodes/errors.rb +0 -38
- data/lib/idealpostcodes/key.rb +0 -14
- data/lib/idealpostcodes/postcode.rb +0 -23
- data/lib/idealpostcodes/util.rb +0 -42
- data/lib/idealpostcodes/version.rb +0 -3
- data/lib/idealpostcodes.rb +0 -124
- data/spec/addresses_spec.rb +0 -68
- data/spec/idealpostcodes_spec.rb +0 -56
- data/spec/keys_spec.rb +0 -25
- data/spec/postcodes_spec.rb +0 -77
- data/spec/spec_helper.rb +0 -89
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_raises_an_exception_if_invalid_key.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_raises_an_exception_if_limit_breached.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_raises_an_exception_if_no_lookups_remaining.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_returns_an_address_for_a_valid_UDPRN.yml +0 -74
- data/spec/vcr_cassettes/IdealPostcodes_Address_lookup_returns_nil_for_an_invalid_UDPRN.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_is_sensitive_to_limit.yml +0 -81
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_is_sensitive_to_page.yml +0 -369
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_raises_an_exception_if_invalid_key.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_raises_an_exception_if_limit_breached.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_raises_an_exception_if_no_lookups_remaining.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Address_search_returns_results_in_a_SearchResult_object.yml +0 -273
- data/spec/vcr_cassettes/IdealPostcodes_Key_lookup_details_returns_key_details.yml +0 -62
- data/spec/vcr_cassettes/IdealPostcodes_Key_lookup_returns_the_availability_status_of_a_key_false_key_.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_Key_lookup_returns_the_availability_status_of_a_key_true_key_.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_is_sensitive_to_limit_parameter.yml +0 -52
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_is_sensitive_to_radius_parament.yml +0 -133
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_returns_an_array_of_postcodes_and_locations.yml +0 -84
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_find_by_location_returns_an_empty_array_if_no_results_are_found.yml +0 -43
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_raises_an_exception_if_invalid_key.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_raises_an_exception_if_key_has_run_out_of_balance.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_raises_an_exception_if_limit_has_been_reached.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_returns_a_list_of_addresses_for_a_postcode.yml +0 -268
- data/spec/vcr_cassettes/IdealPostcodes_Postcode_lookup_returns_an_empty_array_if_postcode_does_not_exist.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_key_available_returns_false_if_key_is_unavailable.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_key_available_returns_true_if_key_is_available.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_key_details_raises_an_exception_if_no_secret_is_provided.yml +0 -45
- data/spec/vcr_cassettes/IdealPostcodes_key_details_returns_key_information.yml +0 -62
- data/spec/vcr_cassettes/IdealPostcodes_request_generates_a_HTTP_request.yml +0 -268
- data/spec/vcr_cassettes/IdealPostcodes_request_raises_authentication_error_if_invalid_key_is_provided.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_request_raises_limit_reached_error_if_a_limit_has_been_breached.yml +0 -42
- data/spec/vcr_cassettes/IdealPostcodes_request_raises_token_exhausted_error_if_key_balance_is_depleted.yml +0 -42
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# Australia G-NAF Address
|
|
8
|
+
#
|
|
9
|
+
# An Australian address from the Geocoded National Address File (G-NAF), published by Geoscape.
|
|
10
|
+
# Covers Australia and the external territories of Cocos (Keeling) Islands, Christmas Island and
|
|
11
|
+
# Norfolk Island.
|
|
12
|
+
#
|
|
13
|
+
# Every attribute is always present. The API returns fields with no value as an empty string
|
|
14
|
+
# `""`.
|
|
15
|
+
#
|
|
16
|
+
# The API returns attributes sourced from a one-to-many table (address aliases, site geocodes,
|
|
17
|
+
# locality aliases, street locality aliases) as a single comma separated string, with one
|
|
18
|
+
# element per related record. Related lists share an ordering, so the nth element of each
|
|
19
|
+
# describes the same record.
|
|
20
|
+
class GnafAddress < Model
|
|
21
|
+
# Globally unique internally generated identifier for an address
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
def id = @hash["id"]
|
|
25
|
+
|
|
26
|
+
# @return [String]
|
|
27
|
+
def dataset = @hash["dataset"]
|
|
28
|
+
|
|
29
|
+
# Full country names (ISO 3166)
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
def country = @hash["country"]
|
|
33
|
+
|
|
34
|
+
# 3 letter country code (ISO 3166-1)
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
def country_iso = @hash["country_iso"]
|
|
38
|
+
|
|
39
|
+
# 2 letter country code (ISO 3166-1)
|
|
40
|
+
#
|
|
41
|
+
# @return [String]
|
|
42
|
+
def country_iso_2 = @hash["country_iso_2"]
|
|
43
|
+
|
|
44
|
+
# First address line. The building name where one is recorded, otherwise the street line.
|
|
45
|
+
#
|
|
46
|
+
# @return [String]
|
|
47
|
+
def line_1 = @hash["line_1"]
|
|
48
|
+
|
|
49
|
+
# Second address line. The street line where `line_1` carries a building name.
|
|
50
|
+
#
|
|
51
|
+
# @return [String]
|
|
52
|
+
def line_2 = @hash["line_2"]
|
|
53
|
+
|
|
54
|
+
# Language represented by 2 letter ISO Code (639-1)
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
def language = @hash["language"]
|
|
58
|
+
|
|
59
|
+
# Address / House Number uniquely identifying the address along the specified street. For a
|
|
60
|
+
# ranged address this is the number matched from the query, not the whole range.
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
def address = @hash["address"]
|
|
64
|
+
|
|
65
|
+
# The latitude of the address or postcode (WGS84).
|
|
66
|
+
#
|
|
67
|
+
# @return [String, Float]
|
|
68
|
+
def latitude = @hash["latitude"]
|
|
69
|
+
|
|
70
|
+
# The longitude of the address or postcode (WGS84).
|
|
71
|
+
#
|
|
72
|
+
# @return [String, Float]
|
|
73
|
+
def longitude = @hash["longitude"]
|
|
74
|
+
|
|
75
|
+
# The Persistent Identifier is unique to the real world feature this record represents.
|
|
76
|
+
#
|
|
77
|
+
# @return [String]
|
|
78
|
+
def address_detail_pid = @hash["address_detail_pid"]
|
|
79
|
+
|
|
80
|
+
# ISO 8601 date-time this record was created.
|
|
81
|
+
#
|
|
82
|
+
# @return [String]
|
|
83
|
+
def date_created = @hash["date_created"]
|
|
84
|
+
|
|
85
|
+
# ISO 8601 date-time this record was last modified (not retired/recreated in line with ICSM
|
|
86
|
+
# standard).
|
|
87
|
+
#
|
|
88
|
+
# @return [String]
|
|
89
|
+
def date_last_modified = @hash["date_last_modified"]
|
|
90
|
+
|
|
91
|
+
# ISO 8601 date-time this record was retired.
|
|
92
|
+
#
|
|
93
|
+
# @return [String]
|
|
94
|
+
def date_retired = @hash["date_retired"]
|
|
95
|
+
|
|
96
|
+
# Combines both building/property name fields. Field length: up to 200 alphanumeric characters
|
|
97
|
+
# (AS4590:2006 5.7).
|
|
98
|
+
#
|
|
99
|
+
# @return [String]
|
|
100
|
+
def building_name = @hash["building_name"]
|
|
101
|
+
|
|
102
|
+
# Lot number prefix. Field length: up to two alphanumeric characters (AS4590:2006 5.8.1).
|
|
103
|
+
#
|
|
104
|
+
# @return [String]
|
|
105
|
+
def lot_number_prefix = @hash["lot_number_prefix"]
|
|
106
|
+
|
|
107
|
+
# Lot number. Field length: up to five alphanumeric characters (AS4590:2006 5.8.1).
|
|
108
|
+
#
|
|
109
|
+
# @return [String]
|
|
110
|
+
def lot_number = @hash["lot_number"]
|
|
111
|
+
|
|
112
|
+
# Lot number suffix. Field length: up to two alphanumeric characters (AS4590:2006 5.8.1).
|
|
113
|
+
#
|
|
114
|
+
# @return [String]
|
|
115
|
+
def lot_number_suffix = @hash["lot_number_suffix"]
|
|
116
|
+
|
|
117
|
+
# Specification of the type of a separately identifiable portion within a building/complex.
|
|
118
|
+
# Field Length: up to seven upper case alpha characters (AS4590:2006 5.5.1.1).
|
|
119
|
+
#
|
|
120
|
+
# @return [String]
|
|
121
|
+
def flat_type_code = @hash["flat_type_code"]
|
|
122
|
+
|
|
123
|
+
# Flat/unit number prefix. Field length: up to two alphanumeric characters (AS4590:2006
|
|
124
|
+
# 5.5.1.2).
|
|
125
|
+
#
|
|
126
|
+
# @return [String]
|
|
127
|
+
def flat_number_prefix = @hash["flat_number_prefix"]
|
|
128
|
+
|
|
129
|
+
# @return [String, Integer]
|
|
130
|
+
def flat_number = @hash["flat_number"]
|
|
131
|
+
|
|
132
|
+
# Flat/unit number suffix. Field length: up to two alphanumeric characters (AS4590:2006
|
|
133
|
+
# 5.5.1.2).
|
|
134
|
+
#
|
|
135
|
+
# @return [String]
|
|
136
|
+
def flat_number_suffix = @hash["flat_number_suffix"]
|
|
137
|
+
|
|
138
|
+
# Level type. Field length: up to four alphanumeric characters (AS4590:2006 5.5.2.1).
|
|
139
|
+
#
|
|
140
|
+
# @return [String]
|
|
141
|
+
def level_type_code = @hash["level_type_code"]
|
|
142
|
+
|
|
143
|
+
# Level number prefix. Field length: up to two alphanumeric characters (AS4590:2006 5.5.2.2).
|
|
144
|
+
#
|
|
145
|
+
# @return [String]
|
|
146
|
+
def level_number_prefix = @hash["level_number_prefix"]
|
|
147
|
+
|
|
148
|
+
# @return [String, Integer]
|
|
149
|
+
def level_number = @hash["level_number"]
|
|
150
|
+
|
|
151
|
+
# Level number suffix. Field length: up to two alphanumeric characters (AS4590:2006 5.5.2.2).
|
|
152
|
+
#
|
|
153
|
+
# @return [String]
|
|
154
|
+
def level_number_suffix = @hash["level_number_suffix"]
|
|
155
|
+
|
|
156
|
+
# Prefix for the first (or only) number in range. Field length: up to three uppercase
|
|
157
|
+
# alphanumeric characters (AS4590:2006 5.5.3.1).
|
|
158
|
+
#
|
|
159
|
+
# @return [String]
|
|
160
|
+
def number_first_prefix = @hash["number_first_prefix"]
|
|
161
|
+
|
|
162
|
+
# @return [String, Integer]
|
|
163
|
+
def number_first = @hash["number_first"]
|
|
164
|
+
|
|
165
|
+
# Suffix for the first (or only) number in range. Field length: up to two uppercase
|
|
166
|
+
# alphanumeric characters (AS4590:2006 5.5.3.1).
|
|
167
|
+
#
|
|
168
|
+
# @return [String]
|
|
169
|
+
def number_first_suffix = @hash["number_first_suffix"]
|
|
170
|
+
|
|
171
|
+
# Prefix for the last number in range. Field length: up to three uppercase alphanumeric
|
|
172
|
+
# characters (AS4590:2006 5.5.3.2).
|
|
173
|
+
#
|
|
174
|
+
# @return [String]
|
|
175
|
+
def number_last_prefix = @hash["number_last_prefix"]
|
|
176
|
+
|
|
177
|
+
# @return [String, Integer]
|
|
178
|
+
def number_last = @hash["number_last"]
|
|
179
|
+
|
|
180
|
+
# Suffix for the last number in range. Field length: up to two uppercase alphanumeric
|
|
181
|
+
# characters (AS4590:2006 5.5.3.2).
|
|
182
|
+
#
|
|
183
|
+
# @return [String]
|
|
184
|
+
def number_last_suffix = @hash["number_last_suffix"]
|
|
185
|
+
|
|
186
|
+
# Identifier of the street locality this address sits on. Not mandatory - some G-NAF records
|
|
187
|
+
# do not require a street (e.g. a remote rural property).
|
|
188
|
+
#
|
|
189
|
+
# @return [String]
|
|
190
|
+
def street_locality_pid = @hash["street_locality_pid"]
|
|
191
|
+
|
|
192
|
+
# A = Alias record, P = Principal record.
|
|
193
|
+
#
|
|
194
|
+
# @return [String]
|
|
195
|
+
def alias_principal = @hash["alias_principal"]
|
|
196
|
+
|
|
197
|
+
# Postcodes are optional as prescribed by AS4819 and AS4590:2006 5.13.
|
|
198
|
+
#
|
|
199
|
+
# @return [String]
|
|
200
|
+
def postcode = @hash["postcode"]
|
|
201
|
+
|
|
202
|
+
# Private street information. This is not broken up into name/type/suffix. Field length: up to
|
|
203
|
+
# 75 alphanumeric characters. This is not currently populated.
|
|
204
|
+
#
|
|
205
|
+
# @return [String]
|
|
206
|
+
def private_street = @hash["private_street"]
|
|
207
|
+
|
|
208
|
+
# Generic parcel id field derived from the Geoscape Australia's Cadastre parcel where
|
|
209
|
+
# available.
|
|
210
|
+
#
|
|
211
|
+
# @return [String]
|
|
212
|
+
def legal_parcel_id = @hash["legal_parcel_id"]
|
|
213
|
+
|
|
214
|
+
# @return [String, Integer]
|
|
215
|
+
def confidence = @hash["confidence"]
|
|
216
|
+
|
|
217
|
+
# Binary indicator of the level of geocoding this address has. e.g. 0 = 000 = (No geocode), 1
|
|
218
|
+
# = 001 = (No Locality geocode, No Street geocode, Address geocode), etc.
|
|
219
|
+
#
|
|
220
|
+
# @return [Integer]
|
|
221
|
+
def level_geocoded_code = @hash["level_geocoded_code"]
|
|
222
|
+
|
|
223
|
+
# Indicator that identifies if the address is P (Primary) or S (secondary).
|
|
224
|
+
#
|
|
225
|
+
# @return [String]
|
|
226
|
+
def primary_secondary = @hash["primary_secondary"]
|
|
227
|
+
|
|
228
|
+
# Comma separated alias types for this address (e.g. "Synonym"), one per alias record.
|
|
229
|
+
#
|
|
230
|
+
# @return [String]
|
|
231
|
+
def alias_type_code = @hash["alias_type_code"]
|
|
232
|
+
|
|
233
|
+
# Unique abbreviation for the geocode type of the default geocode.
|
|
234
|
+
#
|
|
235
|
+
# @return [String]
|
|
236
|
+
def geocode_type_code = @hash["geocode_type_code"]
|
|
237
|
+
|
|
238
|
+
# @return [String, Float]
|
|
239
|
+
def default_latitude = @hash["default_latitude"]
|
|
240
|
+
|
|
241
|
+
# @return [String, Float]
|
|
242
|
+
def default_longitude = @hash["default_longitude"]
|
|
243
|
+
|
|
244
|
+
# The code indicating the type of change, for example, LOC-STN for locality name and street
|
|
245
|
+
# name change.
|
|
246
|
+
#
|
|
247
|
+
# @return [String]
|
|
248
|
+
def address_change_type_code = @hash["address_change_type_code"]
|
|
249
|
+
|
|
250
|
+
# Code for the 2016 mesh block match e.g. 1.
|
|
251
|
+
#
|
|
252
|
+
# @return [String]
|
|
253
|
+
def mb_2016_match_code = @hash["mb_2016_match_code"]
|
|
254
|
+
|
|
255
|
+
# Code for the 2021 mesh block match e.g. 1.
|
|
256
|
+
#
|
|
257
|
+
# @return [String]
|
|
258
|
+
def mb_2021_match_code = @hash["mb_2021_match_code"]
|
|
259
|
+
|
|
260
|
+
# Address type (e.g. "Postal", "Physical").
|
|
261
|
+
#
|
|
262
|
+
# @return [String]
|
|
263
|
+
def address_type = @hash["address_type"]
|
|
264
|
+
|
|
265
|
+
# Address site name. Field length: 200 alphanumeric characters.
|
|
266
|
+
#
|
|
267
|
+
# @return [String]
|
|
268
|
+
def address_site_name = @hash["address_site_name"]
|
|
269
|
+
|
|
270
|
+
# Comma separated identifiers relating to each geocoded site (e.g. "Transformer 75658"), one
|
|
271
|
+
# per site geocode record.
|
|
272
|
+
#
|
|
273
|
+
# @return [String]
|
|
274
|
+
def geocode_site_name = @hash["geocode_site_name"]
|
|
275
|
+
|
|
276
|
+
# Comma separated abbreviations for each site geocode feature (e.g. "PRCL") (SAWG 7.4.1), one
|
|
277
|
+
# per site geocode record.
|
|
278
|
+
#
|
|
279
|
+
# @return [String]
|
|
280
|
+
def site_geocode_type_code = @hash["site_geocode_type_code"]
|
|
281
|
+
|
|
282
|
+
# Comma separated spatial precision of each site geocode, expressed as a number in the range 1
|
|
283
|
+
# (unique identification of feature) to 6 (feature associated to region i.e. postcode).
|
|
284
|
+
#
|
|
285
|
+
# @return [String]
|
|
286
|
+
def reliability_code = @hash["reliability_code"]
|
|
287
|
+
|
|
288
|
+
# Comma separated measurements (metres) of each site geocode from other geocodes associated
|
|
289
|
+
# with the same address persistent identifier.
|
|
290
|
+
#
|
|
291
|
+
# @return [String]
|
|
292
|
+
def site_boundary_extent = @hash["site_boundary_extent"]
|
|
293
|
+
|
|
294
|
+
# Comma separated planimetric accuracy of each site geocode.
|
|
295
|
+
#
|
|
296
|
+
# @return [String]
|
|
297
|
+
def site_planimetric_accuracy = @hash["site_planimetric_accuracy"]
|
|
298
|
+
|
|
299
|
+
# Comma separated elevation of each site geocode. This field is not currently populated.
|
|
300
|
+
#
|
|
301
|
+
# @return [String]
|
|
302
|
+
def elevation = @hash["elevation"]
|
|
303
|
+
|
|
304
|
+
# Comma separated longitude of each site geocode (GDA2020).
|
|
305
|
+
#
|
|
306
|
+
# @return [String]
|
|
307
|
+
def site_longitude = @hash["site_longitude"]
|
|
308
|
+
|
|
309
|
+
# Comma separated latitude of each site geocode (GDA2020).
|
|
310
|
+
#
|
|
311
|
+
# @return [String]
|
|
312
|
+
def site_latitude = @hash["site_latitude"]
|
|
313
|
+
|
|
314
|
+
# @return [String, Integer]
|
|
315
|
+
def geocode_type_priority_order = @hash["geocode_type_priority_order"]
|
|
316
|
+
|
|
317
|
+
# Comma separated priority order of each site geocode type, 1 (most precise) to 29 (least
|
|
318
|
+
# precise), one per site geocode record.
|
|
319
|
+
#
|
|
320
|
+
# @return [String]
|
|
321
|
+
def site_geocode_priority_order = @hash["site_geocode_priority_order"]
|
|
322
|
+
|
|
323
|
+
# The name of the locality or suburb.
|
|
324
|
+
#
|
|
325
|
+
# @return [String]
|
|
326
|
+
def locality_name = @hash["locality_name"]
|
|
327
|
+
|
|
328
|
+
# Required to differentiate localities of the same name within a state.
|
|
329
|
+
#
|
|
330
|
+
# @return [String]
|
|
331
|
+
def primary_postcode = @hash["primary_postcode"]
|
|
332
|
+
|
|
333
|
+
# Describes the class of locality (e.g. Gazetted, topographic feature etc.). Lookup to
|
|
334
|
+
# locality class.
|
|
335
|
+
#
|
|
336
|
+
# @return [String]
|
|
337
|
+
def locality_class_code = @hash["locality_class_code"]
|
|
338
|
+
|
|
339
|
+
# @return [String, Integer]
|
|
340
|
+
def locality_gnaf_reliability_code = @hash["locality_gnaf_reliability_code"]
|
|
341
|
+
|
|
342
|
+
# Comma separated alias names for the locality or suburb.
|
|
343
|
+
#
|
|
344
|
+
# @return [String]
|
|
345
|
+
def locality_alias_name = @hash["locality_alias_name"]
|
|
346
|
+
|
|
347
|
+
# Comma separated postcodes, one per locality alias.
|
|
348
|
+
#
|
|
349
|
+
# @return [String]
|
|
350
|
+
def locality_alias_postcode = @hash["locality_alias_postcode"]
|
|
351
|
+
|
|
352
|
+
# Comma separated alias type codes, one per locality alias.
|
|
353
|
+
#
|
|
354
|
+
# @return [String]
|
|
355
|
+
def locality_alias_type_code = @hash["locality_alias_type_code"]
|
|
356
|
+
|
|
357
|
+
# @return [String, Integer]
|
|
358
|
+
def locality_planimetric_accuracy = @hash["locality_planimetric_accuracy"]
|
|
359
|
+
|
|
360
|
+
# @return [String, Float]
|
|
361
|
+
def locality_latitude = @hash["locality_latitude"]
|
|
362
|
+
|
|
363
|
+
# @return [String, Float]
|
|
364
|
+
def locality_longitude = @hash["locality_longitude"]
|
|
365
|
+
|
|
366
|
+
# The 2016 mesh block code.
|
|
367
|
+
#
|
|
368
|
+
# @return [String]
|
|
369
|
+
def mb_2016_code = @hash["mb_2016_code"]
|
|
370
|
+
|
|
371
|
+
# The 2021 mesh block code.
|
|
372
|
+
#
|
|
373
|
+
# @return [String]
|
|
374
|
+
def mb_2021_code = @hash["mb_2021_code"]
|
|
375
|
+
|
|
376
|
+
# Comma separated join type codes, one per primary/secondary link on this address. Each is 1
|
|
377
|
+
# OR 2 when the root address:-
|
|
378
|
+
#
|
|
379
|
+
# @return [String]
|
|
380
|
+
def ps_join_type_code = @hash["ps_join_type_code"]
|
|
381
|
+
|
|
382
|
+
# The state or territory name, title cased. E.g. Tasmania.
|
|
383
|
+
#
|
|
384
|
+
# @return [String]
|
|
385
|
+
def state_name = @hash["state_name"]
|
|
386
|
+
|
|
387
|
+
# The state or territory abbreviation.
|
|
388
|
+
#
|
|
389
|
+
# @return [String]
|
|
390
|
+
def state_abbreviation = @hash["state_abbreviation"]
|
|
391
|
+
|
|
392
|
+
# Defines whether this street represents a confirmed or unconfirmed street.
|
|
393
|
+
#
|
|
394
|
+
# @return [String]
|
|
395
|
+
def street_class_code = @hash["street_class_code"]
|
|
396
|
+
|
|
397
|
+
# Street name. e.g. "Barney".
|
|
398
|
+
#
|
|
399
|
+
# @return [String]
|
|
400
|
+
def street_name = @hash["street_name"]
|
|
401
|
+
|
|
402
|
+
# The street type code. e.g. "Street".
|
|
403
|
+
#
|
|
404
|
+
# @return [String]
|
|
405
|
+
def street_type_code = @hash["street_type_code"]
|
|
406
|
+
|
|
407
|
+
# The street suffix code. e.g. "West".
|
|
408
|
+
#
|
|
409
|
+
# @return [String]
|
|
410
|
+
def street_suffix_code = @hash["street_suffix_code"]
|
|
411
|
+
|
|
412
|
+
# @return [String, Integer]
|
|
413
|
+
def gnaf_street_confidence = @hash["gnaf_street_confidence"]
|
|
414
|
+
|
|
415
|
+
# @return [String, Integer]
|
|
416
|
+
def street_locality_gnaf_reliability_code = @hash["street_locality_gnaf_reliability_code"]
|
|
417
|
+
|
|
418
|
+
# Comma separated street alias names. e.g. "Poplar".
|
|
419
|
+
#
|
|
420
|
+
# @return [String]
|
|
421
|
+
def street_locality_alias_street_name = @hash["street_locality_alias_street_name"]
|
|
422
|
+
|
|
423
|
+
# Comma separated street type codes, one per street alias. e.g. "Place".
|
|
424
|
+
#
|
|
425
|
+
# @return [String]
|
|
426
|
+
def street_locality_alias_street_type_code = @hash["street_locality_alias_street_type_code"]
|
|
427
|
+
|
|
428
|
+
# Comma separated street suffix codes, one per street alias. e.g. "West".
|
|
429
|
+
#
|
|
430
|
+
# @return [String]
|
|
431
|
+
def street_locality_alias_street_suffix_code
|
|
432
|
+
@hash["street_locality_alias_street_suffix_code"]
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
# Comma separated alias type codes, one per street alias.
|
|
436
|
+
#
|
|
437
|
+
# @return [String]
|
|
438
|
+
def street_locality_alias_type_code = @hash["street_locality_alias_type_code"]
|
|
439
|
+
|
|
440
|
+
# @return [String, Integer]
|
|
441
|
+
def street_locality_boundary_extent = @hash["street_locality_boundary_extent"]
|
|
442
|
+
|
|
443
|
+
# @return [String, Integer]
|
|
444
|
+
def street_locality_planimetric_accuracy = @hash["street_locality_planimetric_accuracy"]
|
|
445
|
+
|
|
446
|
+
# @return [String, Float]
|
|
447
|
+
def street_locality_latitude = @hash["street_locality_latitude"]
|
|
448
|
+
|
|
449
|
+
# @return [String, Float]
|
|
450
|
+
def street_locality_longitude = @hash["street_locality_longitude"]
|
|
451
|
+
|
|
452
|
+
# Abbreviation of the street type. e.g. "St".
|
|
453
|
+
#
|
|
454
|
+
# @return [String]
|
|
455
|
+
def street_type_name = @hash["street_type_name"]
|
|
456
|
+
|
|
457
|
+
# Comma separated abbreviations of the street type, one per street alias. e.g. "St".
|
|
458
|
+
#
|
|
459
|
+
# @return [String]
|
|
460
|
+
def street_locality_alias_street_type_name = @hash["street_locality_alias_street_type_name"]
|
|
461
|
+
end
|
|
462
|
+
end
|
|
463
|
+
end
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# HERE Address
|
|
8
|
+
#
|
|
9
|
+
# An address from HERE Technologies' map data, covering 230 countries and territories across
|
|
10
|
+
# twelve regional datasets named in `dataset`. Each address carries its address lines, house
|
|
11
|
+
# number (`address`), street name, HERE's administrative hierarchy (`order1_name`,
|
|
12
|
+
# `order2_name`, `order8_name`, `builtup_name`), a postal code where the country has one,
|
|
13
|
+
# display and delivery coordinates and, where HERE holds them, the building, unit, level and
|
|
14
|
+
# unit name. Depth varies by country, from building level down to region level only. HERE
|
|
15
|
+
# refreshes the data quarterly.
|
|
16
|
+
#
|
|
17
|
+
# Conventions:
|
|
18
|
+
#
|
|
19
|
+
# - A record is one of four kinds, named after the dataset in `id`: `ap` an address point, `ar`
|
|
20
|
+
# an address range, `poi` a point of interest, `loc` a locality. Postal Addressing records are
|
|
21
|
+
# `pap` and `par`.
|
|
22
|
+
# - `id` is the dataset, the kind, HERE's key and the language code. A range id carries a
|
|
23
|
+
# further segment holding the interpolated house number (`herewe_ar|74024700!27769096|8|de`).
|
|
24
|
+
# - Text fields are empty strings, never null. Coordinates are empty strings when absent.
|
|
25
|
+
# - Only `line_1` and `line_2` are ever populated. `line_1` is the building name line where the
|
|
26
|
+
# record has one, otherwise the street line. Ranges, points of interest and localities produce
|
|
27
|
+
# at most one line.
|
|
28
|
+
# - Casing is as HERE ships it. Only the Postal Addressing fields are title cased.
|
|
29
|
+
# - `language` is the ISO 639-1 code for the record. A street named in more than one language
|
|
30
|
+
# yields one record per language, identical but for the language segment of `id`.
|
|
31
|
+
class HereAddress < Model
|
|
32
|
+
# Globally unique internally generated identifier for an address
|
|
33
|
+
#
|
|
34
|
+
# @return [String]
|
|
35
|
+
def id = @hash["id"]
|
|
36
|
+
|
|
37
|
+
# Three character country code based on ISO Standard 3166.
|
|
38
|
+
#
|
|
39
|
+
# @return [String]
|
|
40
|
+
def country_iso = @hash["country_iso"]
|
|
41
|
+
|
|
42
|
+
# HERE regional dataset the address was sourced from.
|
|
43
|
+
#
|
|
44
|
+
# @return [String]
|
|
45
|
+
def dataset = @hash["dataset"]
|
|
46
|
+
|
|
47
|
+
# ISO 639-1 language code of the record, mapped down from HERE's three-letter code. Taken from
|
|
48
|
+
# the address point, the road for a range, the point of interest or the administrative place
|
|
49
|
+
# for a locality.
|
|
50
|
+
#
|
|
51
|
+
# @return [String]
|
|
52
|
+
def language = @hash["language"]
|
|
53
|
+
|
|
54
|
+
# First address line.
|
|
55
|
+
#
|
|
56
|
+
# @return [String]
|
|
57
|
+
def line_1 = @hash["line_1"]
|
|
58
|
+
|
|
59
|
+
# Second address line.
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
def line_2 = @hash["line_2"]
|
|
63
|
+
|
|
64
|
+
# Third address line. Always the empty string `""` for HERE records, which produce at most two
|
|
65
|
+
# lines.
|
|
66
|
+
#
|
|
67
|
+
# @return [String]
|
|
68
|
+
def line_3 = @hash["line_3"]
|
|
69
|
+
|
|
70
|
+
# Fourth address line. Always the empty string `""` for HERE records, which produce at most
|
|
71
|
+
# two lines.
|
|
72
|
+
#
|
|
73
|
+
# @return [String]
|
|
74
|
+
def line_4 = @hash["line_4"]
|
|
75
|
+
|
|
76
|
+
# Fifth address line. Always the empty string `""` for HERE records, which produce at most two
|
|
77
|
+
# lines.
|
|
78
|
+
#
|
|
79
|
+
# @return [String]
|
|
80
|
+
def line_5 = @hash["line_5"]
|
|
81
|
+
|
|
82
|
+
# Address / House Number uniquely identifying the address along the specified road link.
|
|
83
|
+
#
|
|
84
|
+
# @return [String]
|
|
85
|
+
def address = @hash["address"]
|
|
86
|
+
|
|
87
|
+
# @return [String, Float]
|
|
88
|
+
def delivery_latitude = @hash["delivery_latitude"]
|
|
89
|
+
|
|
90
|
+
# @return [String, Float]
|
|
91
|
+
def delivery_longitude = @hash["delivery_longitude"]
|
|
92
|
+
|
|
93
|
+
# Name of the Building to which the Point Address is associated.
|
|
94
|
+
#
|
|
95
|
+
# @return [String]
|
|
96
|
+
def building_name = @hash["building_name"]
|
|
97
|
+
|
|
98
|
+
# @return [String, Float]
|
|
99
|
+
def latitude = @hash["latitude"]
|
|
100
|
+
|
|
101
|
+
# @return [String, Float]
|
|
102
|
+
def longitude = @hash["longitude"]
|
|
103
|
+
|
|
104
|
+
# The full spelling of the street name, including Prefix, Base Name, Suffix, Street Type, and
|
|
105
|
+
# Direction on Sign.
|
|
106
|
+
#
|
|
107
|
+
# @return [String]
|
|
108
|
+
def street_name = @hash["street_name"]
|
|
109
|
+
|
|
110
|
+
# Full postal code; could be numeric or alphanumeric postal code.
|
|
111
|
+
#
|
|
112
|
+
# @return [String]
|
|
113
|
+
def postal_code = @hash["postal_code"]
|
|
114
|
+
|
|
115
|
+
# Identifies the highest administrative level in which a country can be subdivided.
|
|
116
|
+
#
|
|
117
|
+
# @return [String]
|
|
118
|
+
def order1_name = @hash["order1_name"]
|
|
119
|
+
|
|
120
|
+
# Identifies an intermediate administrative level of a country and is a sub-division of an
|
|
121
|
+
# Order-1 area. Only countries with a five (or more) level administrative hierarchy have
|
|
122
|
+
# Order-2 administrative levels defined. This feature can be used for destination selection
|
|
123
|
+
# and map display.
|
|
124
|
+
#
|
|
125
|
+
# @return [String]
|
|
126
|
+
def order2_name = @hash["order2_name"]
|
|
127
|
+
|
|
128
|
+
# Identifies the lowest level of the country's administrative hierarchy that is present
|
|
129
|
+
# country-wide. (No gaps exist in the coverage.)
|
|
130
|
+
#
|
|
131
|
+
# @return [String]
|
|
132
|
+
def order8_name = @hash["order8_name"]
|
|
133
|
+
|
|
134
|
+
# Identifies the lowest administrative level for a country. This level does not cover the
|
|
135
|
+
# entire country, (as opposed to the Order-8 Area level which does cover the entire country).
|
|
136
|
+
# This feature should be used in conjunction with Zone and Order-8 Area for destination
|
|
137
|
+
# selection. The Built-up Area polygon, as published in RDF_CARTO, can also be used for map
|
|
138
|
+
# display.
|
|
139
|
+
#
|
|
140
|
+
# @return [String]
|
|
141
|
+
def builtup_name = @hash["builtup_name"]
|
|
142
|
+
|
|
143
|
+
# Name of the point of interest. Populated for point of interest records only.
|
|
144
|
+
#
|
|
145
|
+
# @return [String]
|
|
146
|
+
def poi_name = @hash["poi_name"]
|
|
147
|
+
|
|
148
|
+
# Name of the Building associated with a Micro Point Address.
|
|
149
|
+
#
|
|
150
|
+
# @return [String]
|
|
151
|
+
def building_unit_name = @hash["building_unit_name"]
|
|
152
|
+
|
|
153
|
+
# Name of floor or level within a building associated with a Micro Point Address.
|
|
154
|
+
#
|
|
155
|
+
# @return [String]
|
|
156
|
+
def level_name = @hash["level_name"]
|
|
157
|
+
|
|
158
|
+
# Name of the unit (suite, etc) associated with a Micro Point Address.
|
|
159
|
+
#
|
|
160
|
+
# @return [String]
|
|
161
|
+
def unit_name = @hash["unit_name"]
|
|
162
|
+
|
|
163
|
+
# Additional address or building information.
|
|
164
|
+
#
|
|
165
|
+
# @return [String]
|
|
166
|
+
def suppl_address_info = @hash["suppl_address_info"]
|
|
167
|
+
|
|
168
|
+
# Name of the group of buildings with which the address is associated.
|
|
169
|
+
#
|
|
170
|
+
# @return [String]
|
|
171
|
+
def building_grp_name = @hash["building_grp_name"]
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated from the OpenAPI spec. Do not edit.
|
|
4
|
+
|
|
5
|
+
module IdealPostcodes
|
|
6
|
+
module Types
|
|
7
|
+
# Invalid Phone Number Object
|
|
8
|
+
class InvalidPhoneNumber < Model
|
|
9
|
+
# @return [Boolean]
|
|
10
|
+
def valid = @hash["valid"]
|
|
11
|
+
|
|
12
|
+
# Phone number formatted to local standard
|
|
13
|
+
#
|
|
14
|
+
# @return [nil]
|
|
15
|
+
def national_format = @hash["national_format"]
|
|
16
|
+
|
|
17
|
+
# Phone number formatted to international standard
|
|
18
|
+
#
|
|
19
|
+
# @return [nil]
|
|
20
|
+
def international_format = @hash["international_format"]
|
|
21
|
+
|
|
22
|
+
# Country code in 3 letter ISO format
|
|
23
|
+
#
|
|
24
|
+
# @return [nil]
|
|
25
|
+
def iso_country = @hash["iso_country"]
|
|
26
|
+
|
|
27
|
+
# Country code in 2 letter ISO format
|
|
28
|
+
#
|
|
29
|
+
# @return [nil]
|
|
30
|
+
def iso_country_2 = @hash["iso_country_2"]
|
|
31
|
+
|
|
32
|
+
# Full country name
|
|
33
|
+
#
|
|
34
|
+
# @return [nil]
|
|
35
|
+
def country = @hash["country"]
|
|
36
|
+
|
|
37
|
+
# Representation of current phone carrier information like network code, name, country,
|
|
38
|
+
# network type
|
|
39
|
+
#
|
|
40
|
+
# @return [nil]
|
|
41
|
+
def current_carrier = @hash["current_carrier"]
|
|
42
|
+
|
|
43
|
+
# Representation of original phone carrier information like network code, name, country,
|
|
44
|
+
# network type
|
|
45
|
+
#
|
|
46
|
+
# @return [nil]
|
|
47
|
+
def original_carrier = @hash["original_carrier"]
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|