![us zip code locator us zip code locator](https://www.nukepills.com/wp-content/uploads/nuclear-reactor-zipcode-locator1.jpg)
The USPS does have a rule that addresses must be unique to a ZIP code. You can have more than one '100 Pine St' in a state, county or even city. In order for a locator to be accurate, the address must be unique within a specified area.
![us zip code locator us zip code locator](https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2010/07/Zip-Code07.png)
The problem with my workaround even though technically it works, is that its pretty slow. And of course I could do this for state too. Then for each address match, get the IPoint, for each IPoint, run it through a find closest address function, with Zone mapped to Zip, grab the Zip code, and concatenate the results. Right now my workaround is may City to Zone.
#Us zip code locator how to
Because I am allowing the user to select an address in a window I want to display the addresses with all the data, but since only Zone comes back, I'm having a difficult time figuring out how to get it. If I had mapped City to Zone, I would get the city name back. The list looks like this: Shape System._ComObject IFields candidateFields = addressCandidates.CandidateFields įor (int candidateIndex = 0 candidateIndex dataAvailableToDisplay = new List() įor (int fieldIndex = 0 fieldIndex < candidateFields.FieldCount fieldIndex++)ĪddressField = candidateFields.get_Field(fieldIndex) ĭataAvailableToDisplay.add(addressField.AliasName + " " + candidatePropertySet.GetProperty(addressField.Name)) Here is how I fetch addresses: IArray resultsArray = addressCandidates.FindAddressCandidates(addressProperties)
![us zip code locator us zip code locator](http://www.filetransit.com/images/screen/199a7462cd1a1582795a9b05f9b688ae_Zip_Code_Search.jpeg)
Unsurprisingly, the client wants a regular looking address with house number street name, city, state, zip. If the address is not found in the search and address candidates are found, I open a window which allows the user to select which address they want. Which I don't take issue with, but maybe I didn't properly explain why I want City, State, Zip. How can I get city, state, and zip code as a "US One Address" locator? This technique works, but the results omit state and zip code. MWrenn suggested I try the locator named "US One Address with Zone" and map city to zone. I'm trying to understand why the file doesn't contain city, state or zip code fields. To do address resolution on a parcel / polygon layer. C:\Program Files\ArcGIS\Desktop10.0\Locators\US One Address.lot