# Narrowing Search Results like Zipcode search does

**URL:** <https://community.thinkgeo.com/t/narrowing-search-results-like-zipcode-search-does/7282>\
**Category:** Geocoding\
**Created:** [August 20, 2015, 7:51am UTC](https://community.thinkgeo.com/t/narrowing-search-results-like-zipcode-search-does/7282 "2015-08-20T07:51:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Troy](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://community.thinkgeo.com/u/Troy)\
**Post date:** [August 21, 2015, 3:58am UTC](https://community.thinkgeo.com/t/narrowing-search-results-like-zipcode-search-does/7282/2 "2015-08-21T03:58:03Z")

</div>

Hi&nbsp;Dave,  
  
  
  
For&nbsp;#1,&nbsp;we&nbsp;also&nbsp;noticed&nbsp;this&nbsp;difference&nbsp;and&nbsp;this&nbsp;is&nbsp;the&nbsp;part&nbsp;what&nbsp;we&nbsp;were&nbsp;improving&nbsp;in&nbsp;but&nbsp;still&nbsp;be&nbsp;in&nbsp;experiment.&nbsp;The&nbsp;difference&nbsp;reason&nbsp;is&nbsp;with&nbsp;the&nbsp;zipcode,&nbsp;the&nbsp;searching&nbsp;will&nbsp;run&nbsp;into&nbsp;other&nbsp;branch&nbsp;which&nbsp;will&nbsp;improve&nbsp;the&nbsp;result&nbsp;accuracy.&nbsp;  
  
  
  
Currently,&nbsp;I&nbsp;have&nbsp;a&nbsp;workaround:&nbsp;we&nbsp;can&nbsp;search&nbsp;out&nbsp;the&nbsp;possible&nbsp;zip&nbsp;codes&nbsp;by&nbsp;the&nbsp;city&nbsp;and&nbsp;state&nbsp;name&nbsp;from&nbsp;the&nbsp;zip.dbf&nbsp;included&nbsp;in&nbsp;the&nbsp;geocoder&nbsp;dataset.&nbsp;Then&nbsp;we&nbsp;loop&nbsp;to&nbsp;add&nbsp;the&nbsp;possible&nbsp;zip&nbsp;codes&nbsp;with&nbsp;the&nbsp;Street,Zipcode&nbsp;method&nbsp;to&nbsp;geocoding.&nbsp;&nbsp;I&nbsp;attached&nbsp;a&nbsp;class&nbsp;to&nbsp;search&nbsp;value&nbsp;from&nbsp;a&nbsp;dbf&nbsp;file&nbsp;and&nbsp;hope&nbsp;it&nbsp;helps.&nbsp;I&nbsp;will&nbsp;help&nbsp;you&nbsp;implement&nbsp;this&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;questions&nbsp;on&nbsp;it.  
  
  
  
For&nbsp;#2,&nbsp;That’s&nbsp;right,&nbsp;the&nbsp;house&nbsp;number&nbsp;should&nbsp;be&nbsp;between&nbsp;(FROMADDRESSLEFT&nbsp;and&nbsp;TOADDRESSLEFT)&nbsp;&nbsp;or&nbsp;(FROMADDRESSRIGHT&nbsp;and&nbsp;TOADDRESSRIGHT),&nbsp;if&nbsp;not,&nbsp;then&nbsp;we&nbsp;should&nbsp;drop&nbsp;it&nbsp;from&nbsp;the&nbsp;matched&nbsp;results.  
  
  
  
Thanks,  
  
  
  
Troy  
  
[001\_DbfManager.cs.txt](https://community.thinkgeo.com/uploads/default/original/2X/1/19092c97be080e66436f1cf8fa041ba41d792300.txt) (4.03 KB)

---

_[View the full topic](https://community.thinkgeo.com/t/narrowing-search-results-like-zipcode-search-does/7282)._
