Addressr
Free Australian Address Validation, Search and Autocomplete
Install / Use
/learn @mountain-pass/AddressrREADME
Addressr
![]()
Australian Address Validation, Search and Autocomplete - addressr.io
About
Australian Address Validation, Search and Autocomplete
Australian Data Source
Addresses validated against the Geocoded National Address File (referred to as G-NAF), Australia’s authoritative address file.
Software As or NOT As A Service
We love SaaS, but we know its not for everyone. SaaS or self hosted, we've got you covered.
Always Up-To-Date
Addressr automatically updates with the latest data, so you're never out-of-date.
Real-time Address Validation
Add address autocomplete, search and validation to your forms.
Easy To Use API
Build your solution quickly, with our straightforward API.
Run On Your Own Infrastructure or Use Ours
On-premise or in the cloud, run Addressr on your own infrastructure, or leave all the hard work to us.
Completely Free or Pay for Support
That's right, Addressr is completely free Forever. Or for peace of mind for your mission critical solutions, get commercial support you can truly rely on.
ToC
Quick Start
Self Hosted
-
Install addressr
npm install @mountainpass/addressr -gNOTE: If you are running windows, you'll need to use wsl
-
Start open search. For example run
docker pull opensearchproject/opensearch:1.3.20 docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "plugins.security.disabled=true" opensearchproject/opensearch:1.3.20 -
Start API server. In a second window run:
export ELASTIC_PORT=9200 export ELASTIC_HOST=localhost addressr-server-2 -
Setup the env vars for the data loader. In a third window run:
export ELASTIC_PORT=9200 export ELASTIC_HOST=localhost export ADDRESSR_INDEX_TIMEOUT=30s export ADDRESSR_INDEX_BACKOFF=1000 export ADDRESSR_INDEX_BACKOFF_INCREMENT=1000 export ADDRESSR_INDEX_BACKOFF_MAX=10000- Optional - enable geocodes by setting the following env vars for the data loader. In the third window run: NOTE: with geocodes enabled, indexing takes much longer and needs much more memory. Only use turn them on if you need them. You can always add them later.
export ADDRESSR_ENABLE_GEO=1 export NODE_OPTIONS=--max_old_space_size=8196- Optional - limit the addresses to a single state by setting the
COVERED_STATESenv var for the data loader. This dramatically speeds up indexing. For example, in the third window run:
export COVERED_STATES=VIC,SAValid values are:
- ACT
- NSW
- NT
- OT
- QLD
- SA
- TAS
- VIC
- WA
-
Run data Loader. In the third window run:
addressr-loader -
OK, so we stretched the truth a bit with the "Quick Start" heading. The truth is that it takes quite a while to download, store and index the 13+ million addresses from data.gov.au. So
