This is a specific form with a unique address search field that can be:
- Either a specific search field located above the other fields
- Or the "Street" field that will allow the search and will be replaced by the name of the lane when one of the proposed addresses is selected.
The goal is to optimally capture key information in order to fill in the complete address as quickly as possible.
This form is very useful for entering an address quickly in a properly formatted way and without having to modify the address entry form. It is possible to obtain the desired address from an extremely small input. Usually, the street number followed by the beginning of the street directive word and the name of the city are enough to obtain the address looked for.
Example: typing « 620 mad new » is enough to find the « 620 MADISON AVENUE » in New-York.
$('#id_form').dqe({
server : 'classes/dqe.php',
single : '#id_search',
zip : '#id_zip',
city : '#id_city',
street_type : '#id_street_type',
street : '#id_street',
number : '#id_number',
local : '#id_local'
});
We have an event that is triggered as soon as the information suggested by our service is voluntarily modified: "override". It is by default set to "false" but as soon as there is a voluntary and forced modification, this "event" will change to "true".
The "street_type" selector is used to retrieve the street type. If the jQuery selector is well connected, the parameter "&Version=1" will be added to the request and this will retrieve the street type in the json response.