I am using this jQuery script:
http://ubilabs.imtqy.com/geocomplete/
When autocomplete is performed, the formatted address will contain the street number or not, depending on user input, but both entries will generate a success result.
Can I never include a street number in a formatted address, even if it was entered by the user at the time of completion?
Since the street number is mandatory on my website and, given that this value is optional during autocomplete, I will ask the user later anyway, and at the same time itโs not easy for me to manipulate formatted addresses that are not (some have number, others not).
Ideally, I could get rid of the formatted address and consolidate my own format using โrouteโ, โlocalityโ, etc. .... but there are so many different address formats around the world that exist for some countries, but not for others (states, provinces, regions, areas, ...) that itโs almost impossible to format something for granted.
A formatted address is ideal, as it is , if only I could get rid of the street number to add this information to the side.
(Another acceptable solution would be to force the user to enter a street number or to create a warning if this value is not entered. It would be nice if the received formatted addresses always include a number or never. In any case, I'm fine. I just do not agree with the inconsistency .
Thank.