I would like to check addresses that the user enters on a form against AddressCandidates using our WebAddressLocator: Public/WebAddressLocator (GeocodeServer)
I want the Locator Service to run when the user exits the field.
Once the Locator Service runs, I want to check if the address is found using the Locator Service. If it is not found, I want to display a pop-up with the addresses that are similar and allow the user to select from that list. How would I do that?
I looked at the API Reference at: AddressCandidate | API Reference | ArcGIS API for JavaScript but there are no samples in the samples link for me look at.
I uploaded my code for this project. It will not e-mail as the user name and password were removed from the web.config, but everything else is there. It's .NET, but that should not affect what I am trying to do. The page that I am trying to validate addresses in is registration.aspx and I will need to validate up to 31 addresses against our Web Locator Service.
So, basically I need to continue to use this code for each address in each textbox entered.
My code is here: csergent45/codeViolationNotice · GitHub
I haven't written any code yet for the address candidates, as I really don't know where to start with this one. But I will have an update with the JS API references in my code as soon as possible.
I have been asked to have this ready by the end of the day, so if you would embrace my crisis as your crisis I would greatly appreciate it.