agrc / api.mapserv.utah.gov

An asp.net web api system for geocoding addresses and performing spatial queries
https://api.mapserv.utah.gov/
MIT License
5 stars 5 forks source link

Zip code error message #372

Open steveoh opened 1 month ago

steveoh commented 1 month ago

Since we started analyzing geocode request by zip code and can see many zip codes are used that are outside of utah, we can respond to the caller that the zip code is in fact outside of utah.

If our zip code area's are complete and stay current and we can keep them that way, using that list and some conventions that utah zip codes start with 84... we can respond with a message that the zip code is outside of utah or invalid.

gregbunce commented 1 month ago

This is a good idea. It will be a nice enhancement to give the user feedback as to why the match failed. Ensuring the zip begins with 84___ is a simple and quick way to identify Utah.