Loading...

JavaScript - Combined

Autocomplete, Typeahead, Find and Location JavaScript libraries.

Install from NPM or CDN

npm install getaddress-combined
<script src="https://cdn.getaddress.io/scripts/getaddress-1.0.0.min.js"></script>

Usage

<input id="autocomplete_input_id" type="text"> 
<input id="find_input_id" type="text">
<input id="typeahead_input_id" type="text">
<input id="location_input_id" type="text">
<input id="location_native_input_id" type="text">
<input id="autocomplete_native_input_id" type="text">
<script> getAddress.autocomplete( 'autocomplete_input_id', 'API Key or Domain Token' ); getAddress.find( 'find_input_id', 'API Key or Domain Token' ); getAddress.typeahead( 'typeahead_input_id', 'postcode', 'API Key or Domain Token' ); getAddress.location( 'location_input_id', 'API Key or Domain Token' ); getAddress.locationNative( 'location_native_input_id', 'API Key or Domain Token' ); getAddress.autocompleteNative( 'autocomplete_native_input_id', 'API Key or Domain Token' ); </script>

Domain Tokens

To avoid exposing your API key in browser code, Domain Tokens can used in place of your API key.
Domain Tokens can be generated for a specific domain and it's sub-domains. They can also limit the number of look-ups per minute for an IP address.

<script>
    getAddress.autocomplete
    (
        'textbox_id',
        'dtoken_hEDzcyiWMI1eXXXX'
    );
</script>
Top