Skip to content

Commit

Permalink
Added datasets to validate and enrich
Browse files Browse the repository at this point in the history
  • Loading branch information
Simeon Darakchiev authored and Simeon Darakchiev committed Jul 10, 2024
1 parent 1d3bcaa commit 80555b3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/ts/address-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,17 @@ export default class AddressValidation {
}
];

if(this.currentDataSet === "gb-address"){
if (this.currentDataSet === "gb-address"
|| this.currentDataSet === "gb-additional-multipleresidence"
|| this.currentDataSet === "gb-additional-notyetbuilt"
|| this.currentDataSet === "gb-address-addressbase"
|| this.currentDataSet === "gb-additional-addressbaseislands"
|| this.currentDataSet === "gb-additional-business"
|| this.currentDataSet === "gb-additional-electricity"
|| this.currentDataSet === "gb-additional-gas"
|| this.currentDataSet === "gb-address-streetlevel"
|| this.currentDataSet === "gb-additional-businessextended"
|| this.currentDataSet === "gb-address-wales"){
data['attributes'] = {
"uk_location_essential":[
"latitude",
Expand Down Expand Up @@ -445,7 +455,9 @@ export default class AddressValidation {
]
};
}
else if(this.currentDataSet === "au-address"){
else if (this.currentDataSet === "au-address"
|| this.currentDataSet === "au-address-gnaf"
|| this.currentDataSet === "au-address-datafusion"){
data['attributes']['AUS_CV_Household'] = [
"address",
"adults_at_address_code",
Expand Down

0 comments on commit 80555b3

Please sign in to comment.