Skip to content

Commit c26ee52

Browse files
authored
Merge pull request #2 from addynz/1.6.0
1.6.0
2 parents 168210f + 8bc3940 commit c26ee52

17 files changed

Lines changed: 2468 additions & 613 deletions

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
# Address lookup and verification made easy
22

3-
https://www.addy.co.nz/
3+
https://www.addysolution.com/
44

55
Create a delightful user experience and remove friction from your online forms, save customers time and increase your conversion rates.
66

77
Addresses are standardised at the point of capture, validated against official data sources including the New Zealand Postal Address File (PAF) and Land Information New Zealand (LINZ) database.
88

99
Avoid the unnecessary costs of failed deliveries, improve shipping efficiency and ensure parcels arrive first time.
1010

11-
![Addy Address Autocomplete](https://github.com/addynz/Address-Lookup/blob/master/addresslookup.png)
11+
![Addy Address Autocomplete](https://github.com/addynz/Address-Lookup/blob/master/img/addresslookup.png)
1212

1313
Addy's address lookup use intelligent fuzzy matching for searching. This means that if a typo, invalid suburb or partially correct address is entered, customers can still find the right delivery or billing address.
1414

1515
## Get Started
1616

17-
Create a free account <https://www.addy.co.nz/signup> to get an API key.
17+
Create a free account <https://www.addysolutions.com/signup> to get an API key.
1818

1919
1) Include addycomplete.min.css in your page, via the usual tags:
2020

2121
```html
22-
<link rel="stylesheet" href="addycomplete.min.css" />
22+
<link rel="stylesheet" href="addy.min.css" />
2323
```
2424

25-
2) Include addycomplete.min.js at the bottom of the page, before closing the body tag:
25+
2) Include addy.min.js at the bottom of the page, before closing the body tag:
2626

2727
```html
28-
<script src="addycomplete.min.js?key=YOUR-ADDY-KEY&callback=initAddy" async defer></script>
28+
<script src="addy.min.js?nzKey=YOUR-ADDY-KEY&country=nz&callback=initAddy" async defer></script>
2929
```
30-
Replace YOUR-ADDY-KEY with your own Addy API Key.
30+
Replace YOUR-ADDY-KEY with your own Addy API Key. (for AU country, use 'auKey' instead 'nzKey' and 'country=au')
3131

3232
Define the fields and options that will be called by the initAddy callback function once the script has loaded.
3333

@@ -44,21 +44,21 @@ function initAddy() {
4444
}
4545
```
4646

47-
Live demo and documentation: <https://www.addy.co.nz/address-finder-code-example>
47+
Live demo and documentation: <https://www.addysolutions.com/services/address-validation-javascript>
4848

4949
## Prices
5050

51-
Visit the pricing page for more information and to find a plan that works for your business (https://www.addy.co.nz/pricing).
51+
Visit the pricing page for more information and to find a plan that works for your business (https://www.addysolutions.com/pricing).
5252

5353
## Links
5454

55-
Official Addy site: <https://www.addy.co.nz/>
55+
Official Addy site: <https://www.addysolutions.com/>
5656

57-
NZ Address Finder and Postcode API Documentation: <https://www.addy.co.nz/address-finder-and-postcode-api>
57+
NZ Address Finder and Postcode API Documentation: <https://www.addysolutions.com/documentation>
5858

59-
All Documentation: <https://www.addy.co.nz/documentation>
59+
All Documentation: <https://www.addysolutions.com/documentation>
6060

61-
Frequently Asked Questions: <https://www.addy.co.nz/frequently-asked-questions>
61+
Frequently Asked Questions: <https://www.addysolutions.com/faqs>
6262

6363
## License
6464

address-autocomplete-single-line.html

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
66
<meta charset="UTF-8">
77
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
8-
<link type="text/css" rel="stylesheet prefetch" href="https://www.addy.co.nz/css/addy.css">
8+
9+
<!-- only use if loadCss URL query attribute flag is set to false -->
10+
<link type="text/css" rel="stylesheet prefetch" href="./css/addy.min.css">
11+
<!-- or CDN -->
12+
<!-- <link type="text/css" rel="stylesheet prefetch" href="https://www.addysolutions.com/address-lookup/1.6.0/css/addy.min.css"> -->
13+
914
<style>
1015
.awesomplete {
1116
display: block !important;
@@ -15,7 +20,7 @@
1520
font-size: 10pt;
1621
}
1722
.field {
18-
width: 300px;
23+
width: 300px;
1924
}
2025
.label {
2126
width: 120px;
@@ -66,7 +71,7 @@
6671
<td><input type="text" class="field" id="postcode"></td>
6772
</tr>
6873
</table>
69-
</form>
74+
</form>
7075
<script type="text/javascript">
7176
// This is the callback function to initialise the address lookup script
7277
function initAddy() {
@@ -76,10 +81,18 @@
7681
suburb: document.getElementById("suburb"),
7782
city: document.getElementById("city"),
7883
postcode: document.getElementById("postcode"),
79-
region: document.getElementById("region")
84+
//region: document.getElementById("region") // NZ only
8085
}
8186
}
8287
</script>
83-
<script src="https://www.addy.co.nz/scripts/addy.js?key=demo-api-key&callback=initAddy" async defer></script>
88+
<!-- for NZ country -->
89+
<script src="./js/addy.min.js?nzKey=demo-api-key&country=nz&callback=initAddy" async defer></script>
90+
<!-- or CDN -->
91+
<!-- <script src="https://www.addysolutions.com/address-lookup/1.6.0/js/addy.min.js?nzKey=demo-api-key&country=nz&callback=initAddy" async defer></script> -->
92+
93+
<!-- for AU country -->
94+
<!-- <script src="https://www.addysolutions.com/address-lookup/1.6.0/js/addy.min.js?auKey=demo-api-key&country=au&callback=initAddy" async defer></script> -->
95+
<!-- or CDN -->
96+
<!-- <script src="./js/addy.min.js?auKey=demo-api-key&country=au&callback=initAddy" async defer></script> -->
8497
</body>
8598
</html>

address-checker-country.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
66
<meta charset="UTF-8">
77
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
8-
<link type="text/css" rel="stylesheet prefetch" href="https://www.addy.co.nz/css/addy.css">
8+
9+
<!-- only use if loadCss URL query attribute flag is set to false -->
10+
<link type="text/css" rel="stylesheet prefetch" href="./css/addy.min.css">
11+
<!-- or CDN -->
12+
<!-- <link type="text/css" rel="stylesheet prefetch" href="https://www.addysolutions.com/address-lookup/1.6.0/css/addy.min.css"> -->
13+
914
<style>
1015
body {
1116
font-family: 'Roboto', sans-serif;
@@ -85,6 +90,14 @@
8590
}
8691
}
8792
</script>
88-
<script src="https://www.addy.co.nz/scripts/addy.js?key=demo-api-key&callback=initAddy" async defer></script>
93+
<!-- for NZ country -->
94+
<script src="./js/addy.min.js?nzKey=demo-api-key&country=nz&callback=initAddy" async defer></script>
95+
<!-- or CDN -->
96+
<!-- <script src="https://www.addysolutions.com/address-lookup/1.6.0/js/addy.min.js?nzKey=demo-api-key&country=nz&callback=initAddy" async defer></script> -->
97+
98+
<!-- for AU country -->
99+
<!-- <script src="https://www.addysolutions.com/address-lookup/1.6.0/js/addy.min.js?auKey=demo-api-key&country=au&callback=initAddy" async defer></script> -->
100+
<!-- or CDN -->
101+
<!-- <script src="./js/addy.min.js?auKey=demo-api-key&country=au&callback=initAddy" async defer></script> -->
89102
</body>
90103
</html>

address-lookup-shipping.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
66
<meta charset="UTF-8">
77
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
8-
<link type="text/css" rel="stylesheet prefetch" href="https://www.addy.co.nz/css/addy.css">
8+
9+
<!-- only use if loadCss URL query attribute flag is set to false -->
10+
<link type="text/css" rel="stylesheet prefetch" href="./css/addy.min.css">
11+
<!-- or CDN -->
12+
<!-- <link type="text/css" rel="stylesheet prefetch" href="https://www.addysolutions.com/address-lookup/1.6.0/css/addy.min.css"> -->
13+
914
<style>
1015
body {
1116
font-family: 'Roboto', sans-serif;
@@ -116,6 +121,14 @@ <h2>Billing Address</h2>
116121
}
117122
}
118123
</script>
119-
<script src="https://www.addy.co.nz/scripts/addy.js?key=demo-api-key&callback=initAddy" async defer></script>
124+
<!-- for NZ country -->
125+
<script src="./js/addy.min.js?nzKey=demo-api-key&country=nz&callback=initAddy" async defer></script>
126+
<!-- or CDN -->
127+
<!-- <script src="https://www.addysolutions.com/address-lookup/1.6.0/js/addy.min.js?nzKey=demo-api-key&country=nz&callback=initAddy" async defer></script> -->
128+
129+
<!-- for AU country -->
130+
<!-- <script src="https://www.addysolutions.com/address-lookup/1.6.0/js/addy.min.js?auKey=demo-api-key&country=au&callback=initAddy" async defer></script> -->
131+
<!-- or CDN -->
132+
<!-- <script src="./js/addy.min.js?auKey=demo-api-key&country=au&callback=initAddy" async defer></script> -->
120133
</body>
121134
</html>

address-lookup-standard.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
66
<meta charset="UTF-8">
77
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
8-
<link type="text/css" rel="stylesheet prefetch" href="https://www.addy.co.nz/css/addy.css">
8+
9+
<!-- only use if loadCss URL query attribute flag is set to false -->
10+
<link type="text/css" rel="stylesheet prefetch" href="./css/addy.min.css">
11+
<!-- or CDN -->
12+
<!-- <link type="text/css" rel="stylesheet prefetch" href="https://www.addysolutions.com/address-lookup/1.6.0/css/addy.min.css"> -->
13+
914
<style>
1015
body {
1116
font-family: 'Roboto', sans-serif;
@@ -57,6 +62,15 @@
5762
}
5863
}
5964
</script>
60-
<script src="https://www.addy.co.nz/scripts/addy.js?key=demo-api-key&callback=initAddy" async defer></script>
65+
66+
<!-- for NZ country -->
67+
<script src="./js/addy.min.js?nzKey=demo-api-key&country=nz&callback=initAddy" async defer></script>
68+
<!-- or CDN -->
69+
<!-- <script src="https://www.addysolutions.com/address-lookup/1.6.0/js/addy.min.js?nzKey=demo-api-key&country=nz&callback=initAddy" async defer></script> -->
70+
71+
<!-- for AU country -->
72+
<!-- <script src="https://www.addysolutions.com/address-lookup/1.6.0/js/addy.min.js?auKey=demo-api-key&country=au&callback=initAddy" async defer></script> -->
73+
<!-- or CDN -->
74+
<!-- <script src="./js/addy.min.js?auKey=demo-api-key&country=au&callback=initAddy" async defer></script> -->
6175
</body>
6276
</html>

0 commit comments

Comments
 (0)