Address Collection with Azure Maps Search

%3CLINGO-SUB%20id%3D%22lingo-sub-2264305%22%20slang%3D%22en-US%22%3EAddress%20Collection%20with%20Azure%20Maps%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2264305%22%20slang%3D%22en-US%22%3E%3CP%3EWhether%20you%20have%20a%20list%20of%20addresses%20or%20need%20to%20collect%20addresses%20from%20customers%2C%20the%20challenge%20exists%20that%20those%20addresses%20map%20to%20a%20real%20location!%20%26nbsp%3BAs%20you%20or%20your%20company%20are%20taking%20valuable%20time%20to%20collect%20and%20likely%20paying%20for%20space%20to%20store%20this%20information%20it%20is%20important%20that%20it%20be%20free%20of%20misspelling%20and%20contain%20only%20verified%20information.%26nbsp%3B%20With%20Azure%20Maps%20you%20can%20create%20your%20own%20address%20generation%20experience%20that%20covers%20the%20world%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-maps%2Fgeocoding-coverage%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGeocoding%20coverage%20in%20Microsoft%20Azure%20Maps%20Search%20service%20%7C%20Microsoft%20Docs%3C%2FA%3E)%20and%20tailor%20it%20to%20meet%20your%20needs.%26nbsp%3B%20Here%20are%20some%20ideas%20how%20you%20might%20power%20your%20address%20collection%20solution%20by%20leveraging%20Azure%20Maps%20Search%20API.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--494670374%22%20id%3D%22toc-hId--494670372%22%3EUse%20Predictive%20Mode%20to%20provide%20suggested%20addresses%3C%2FH2%3E%0A%3CP%3EIf%20you%20are%20building%20an%20experience%20that%20collects%20address%20information%20through%20a%20web%20site%20or%20form%2C%20you%20can%20allow%20only%20suggested%20addresses%20to%20be%20entered%20by%20having%20the%20client%20enter%20their%20address%20details%20and%20only%20select%20from%20a%20drop%20down%20of%20addresses%20choices.%20The%20Azure%20Maps%20Search%20API%20has%20a%20parameter%2C%26nbsp%3Btypeahead%26nbsp%3Bthat%20when%20set%20to%26nbsp%3Btrue%20will%20treat%20the%20query%20value%20as%20a%20partial%20input%20and%20sets%20the%20API%20into%20a%20predictive%20mode%2C%20assuming%20that%20this%20is%20incomplete%20data.%20You%20can%20try%20our%20sample%20solution%20yourself%20at%20%3CA%20href%3D%22https%3A%2F%2Fazuremapscodesamples.azurewebsites.net%2FREST%2520Services%2FFill%2520Address%2520Form%2520with%2520Autosuggest.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EFill%20Address%20Form%20with%20Autosuggest%20-%20Azure%20Maps%20Web%20SDK%20Samples%20(azuremapscodesamples.azurewebsites.net)%3C%2FA%3E%20and%20pull%20the%20code%20from%20GitHub%20to%20modify%20for%20use%20in%20your%20solution.%20Using%20the%20samples%20steps%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-maps%2Fhow-to-use-best-practices-for-search%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EBest%20practices%20for%20Azure%20Maps%20Search%20Service%20%7C%20Microsoft%20Docs%3C%2FA%3E%20you%20will%20see%20the%20following%20drop-down%20experience%20in%20the%20sample%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IoTGirl_3-1617989741938.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271566iD5643CCA931EC976%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22IoTGirl_3-1617989741938.png%22%20alt%3D%22IoTGirl_3-1617989741938.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20each%20of%20these%20choices%20will%20have%20a%20corresponding%20address%20in%20the%20Search%20response.%20Let%E2%80%99s%20choose%20the%20first%20one%2C%20Charlotte.%26nbsp%3B%20It%20has%20the%20following%20address%20that%20includes%20some%20deeper%20detail%3A%3C%2FP%3E%0A%3CP%3E%22address%22%3A%20%7B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22streetName%22%3A%20%22Microsoft%20Way%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22municipalitySubdivision%22%3A%20%22Charlotte%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22municipality%22%3A%20%22Charlotte%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22countrySecondarySubdivision%22%3A%20%22Mecklenburg%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22countryTertiarySubdivision%22%3A%20%22Township%201%20Charlotte%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22countrySubdivision%22%3A%20%22NC%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22countrySubdivisionName%22%3A%20%22North%20Carolina%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22postalCode%22%3A%20%2228273%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22extendedPostalCode%22%3A%20%22282738105%2C%20282738106%2C%20282738108%2C%202827382%2C%20282738200%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22countryCode%22%3A%20%22US%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22country%22%3A%20%22United%20States%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22countryCodeISO3%22%3A%20%22USA%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22freeformAddress%22%3A%20%22Microsoft%20Way%2C%20Charlotte%2C%20NC%2028273%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%3C%2FP%3E%0A%3CP%3EOnce%20I%20select%20that%20option%20from%20the%20drop%20down%20the%20form%20can%20be%20filled%20with%20the%20values%20from%20the%20Search%20call%20response%2C%20confident%20that%20this%20is%20a%20valid%20address%20as%20shown%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IoTGirl_4-1617989741940.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271567iDE7FBE54D75B6F5A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22IoTGirl_4-1617989741940.png%22%20alt%3D%22IoTGirl_4-1617989741940.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1992842459%22%20id%3D%22toc-hId-1992842461%22%3EConfirming%20visual%20address%20location%20with%20Azure%20Maps%20Search%3C%2FH2%3E%0A%3CP%3EIf%20you%20are%20building%20an%20experience%20to%20validate%20a%20physical%20delivery%20address%2C%20you%20can%20use%20the%20same%20method%20but%20validate%20the%20location%20against%20a%20map%20instead%20of%20entering%20text%20in%20a%20form.%26nbsp%3B%20As%20in%20the%20prior%20sample%2C%20the%20client%20enters%20the%20details%20of%20the%20delivery%20location%20but%20now%20they%20can%20confirm%20that%20the%20correct%20location%20by%20seeing%20where%20a%20pin%20is%20placed%20on%20the%20map.%20If%20not%2C%20they%20can%20type%20more%20details%20to%20change%20the%20suggestion%20options.%20To%20try%20this%20scenario%20for%20yourself%2C%20go%20to%20%3CA%20href%3D%22https%3A%2F%2Fazuremapscodesamples.azurewebsites.us%2FREST%2520Services%2FSearch%2520Autosuggest%2520and%2520JQuery%2520UI.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ESearch%20Autosuggest%20and%20JQuery%20UI%20-%20Azure%20Maps%20Web%20SDK%20Samples%20(azurewebsites.us)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IoTGirl_5-1617989741948.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271568iB1FAC36595F8BB74%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22IoTGirl_5-1617989741948.png%22%20alt%3D%22IoTGirl_5-1617989741948.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-185387996%22%20id%3D%22toc-hId-185387998%22%3EExisting%20address%20match%20with%20Azure%20Maps%20Search%3C%2FH2%3E%0A%3CP%3ELast%20but%20not%20least%2C%20if%20you%20already%20have%20a%20database%20or%20collection%20of%20addresses%20you%20want%20to%20check%2C%20the%20same%20Azure%20Maps%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fmaps%2Fsearch%2Fgetsearchaddress%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGet%20Search%20Address%20API%3C%2FA%3E%26nbsp%3Breceives%20queries%20that%20contain%20location%20information%2C%20and%20returns%20results%20as%20latitude%20and%20longitude%20coordinates.%20This%20API%20can%20be%20called%20individually%20or%20as%20a%20batch%20as%20documented%20here%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fmaps%2Fsearch%2FpostSearchAddressBatch%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESearch%20-%20Post%20Search%20Address%20Batch%20(Azure%20Maps)%20%7C%20Microsoft%20Docs%3C%2FA%3E.%20By%20filtering%20the%20results%2C%20you%20can%20identify%20addresses%20that%20failed%20to%20resolve%20and%20reach%20out%20to%20that%20client%20for%20an%20update%20to%20their%20address%2C%20ensuring%20that%20invalid%20addresses%20are%20identified%20and%20repaired.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20summary%2C%20with%20Azure%20Maps%2C%20there%20is%20a%20path%20to%20only%20keeping%20valuable%20and%20verified%20addresses%20in%20your%20solution.%20Please%20find%20these%20interactive%20samples%20and%20many%20more%20to%20help%20you%20with%20your%20Azure%20Maps%20solution%20at%20%3CA%20href%3D%22https%3A%2F%2Fazuremapscodesamples.azurewebsites.net%2F%3Fsearch%3Dautosuggest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Maps%20Web%20SDK%20Samples%20(azuremapscodesamples.azurewebsites.net)%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Whether you have a list of addresses or need to collect addresses from customers, the challenge exists that those addresses map to a real location!  As you or your company are taking valuable time to collect and likely paying for space to store this information it is important that it be free of misspelling and contain only verified information.  With Azure Maps you can create your own address generation experience that covers the world (Geocoding coverage in Microsoft Azure Maps Search service | Microsoft Docs) and tailor it to meet your needs.  Here are some ideas how you might power your address collection solution by leveraging Azure Maps Search API.

 

Use Predictive Mode to provide suggested addresses

If you are building an experience that collects address information through a web site or form, you can allow only suggested addresses to be entered by having the client enter their address details and only select from a drop down of addresses choices. The Azure Maps Search API has a parameter, typeahead that when set to true will treat the query value as a partial input and sets the API into a predictive mode, assuming that this is incomplete data. You can try our sample solution yourself at Fill Address Form with Autosuggest - Azure Maps Web SDK Samples (azuremapscodesamples.azurewebsites.... and pull the code from GitHub to modify for use in your solution. Using the samples steps in the Best practices for Azure Maps Search Service | Microsoft Docs you will see the following drop-down experience in the sample:

IoTGirl_3-1617989741938.png

 

And each of these choices will have a corresponding address in the Search response. Let’s choose the first one, Charlotte.  It has the following address that includes some deeper detail:

"address": {

                "streetName": "Microsoft Way",

                "municipalitySubdivision": "Charlotte",

                "municipality": "Charlotte",

                "countrySecondarySubdivision": "Mecklenburg",

                "countryTertiarySubdivision": "Township 1 Charlotte",

                "countrySubdivision": "NC",

                "countrySubdivisionName": "North Carolina",

                "postalCode": "28273",

                "extendedPostalCode": "282738105, 282738106, 282738108, 2827382, 282738200",

                "countryCode": "US",

                "country": "United States",

                "countryCodeISO3": "USA",

                "freeformAddress": "Microsoft Way, Charlotte, NC 28273"

            }

Once I select that option from the drop down the form can be filled with the values from the Search call response, confident that this is a valid address as shown:

IoTGirl_4-1617989741940.png

 

 

Confirming visual address location with Azure Maps Search

If you are building an experience to validate a physical delivery address, you can use the same method but validate the location against a map instead of entering text in a form.  As in the prior sample, the client enters the details of the delivery location but now they can confirm that the correct location by seeing where a pin is placed on the map. If not, they can type more details to change the suggestion options. To try this scenario for yourself, go to Search Autosuggest and JQuery UI - Azure Maps Web SDK Samples (azurewebsites.us)

 

IoTGirl_5-1617989741948.png

 

 

Existing address match with Azure Maps Search

Last but not least, if you already have a database or collection of addresses you want to check, the same Azure Maps Get Search Address API receives queries that contain location information, and returns results as latitude and longitude coordinates. This API can be called individually or as a batch as documented here Search - Post Search Address Batch (Azure Maps) | Microsoft Docs. By filtering the results, you can identify addresses that failed to resolve and reach out to that client for an update to their address, ensuring that invalid addresses are identified and repaired.

 

In summary, with Azure Maps, there is a path to only keeping valuable and verified addresses in your solution. Please find these interactive samples and many more to help you with your Azure Maps solution at Azure Maps Web SDK Samples (azuremapscodesamples.azurewebsites.net).

 

 

 

0 Replies
www.000webhost.com