# AdvancedGeoCode method returning wrong state

**URL:** <https://community.thinkgeo.com/t/advancedgeocode-method-returning-wrong-state/2236>\
**Category:** WinForms\
**Created:** [May 14, 2013, 9:44am UTC](https://community.thinkgeo.com/t/advancedgeocode-method-returning-wrong-state/2236 "2013-05-14T09:44:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/eb9ed0/32.png) [@Patrick4](https://community.thinkgeo.com/u/Patrick4)\
**Post date:** [May 14, 2013, 9:44am UTC](https://community.thinkgeo.com/t/advancedgeocode-method-returning-wrong-state/2236/1 "2013-05-14T09:44:52Z")

</div>

Hi,

&nbsp;

My&nbsp;company&nbsp;has&nbsp;an&nbsp;application&nbsp;that&nbsp;uses&nbsp;MapSuite&nbsp;to&nbsp;match&nbsp;incoming&nbsp;work&nbsp;orders&nbsp;to&nbsp;geo&nbsp;locations&nbsp;for&nbsp;the&nbsp;purposes&nbsp;of&nbsp;assigning&nbsp;work.&nbsp;&nbsp;

The&nbsp;p

When&nbsp;we&nbsp;pass&nbsp;in&nbsp;an&nbsp;address&nbsp;for&nbsp;IL,&nbsp;we&nbsp;get&nbsp;coordinates&nbsp;for&nbsp;Ohio.

&nbsp;

For&nbsp;example&nbsp;

We're&nbsp;calling&nbsp;the&nbsp;method&nbsp;MapSuite.GeoCodeUSA.GeoEngine.AdvancedGeoCode(string&nbsp;address,&nbsp;string&nbsp;city,&nbsp;string&nbsp;state,&nbsp;string&nbsp;zip)

using&nbsp;the&nbsp;arguments&nbsp;"5700&nbsp;N&nbsp;NEWARK&nbsp;AV",&nbsp;"CHICAGO",&nbsp;"IL",&nbsp; **60631**  
&nbsp;  
and&nbsp;we're&nbsp;getting&nbsp;coordinates&nbsp;for&nbsp;Cleveland,&nbsp;OH.  
&nbsp;  
&nbsp;  
&nbsp;  
&nbsp;  
As&nbsp;I&nbsp;mentioned&nbsp;before,&nbsp;this&nbsp;is&nbsp;an&nbsp;old&nbsp;application.&nbsp;&nbsp;I'm&nbsp;new&nbsp;to&nbsp;supporting&nbsp;the&nbsp;MapSuite&nbsp;API,&nbsp;but&nbsp;here&nbsp;are&nbsp;some&nbsp;details:  
&nbsp;  
-&nbsp;the&nbsp;MapSuiteCommon.dll&nbsp;is&nbsp;from&nbsp;2008&nbsp;(version&nbsp;2.2,&nbsp;i&nbsp;think)  
-&nbsp;On&nbsp;this&nbsp;Machine&nbsp;I'm&nbsp;seeing&nbsp;a&nbsp;folder&nbsp;called&nbsp;MapData&nbsp;that&nbsp;has&nbsp;no&nbsp;files&nbsp;newer&nbsp;than&nbsp;2008  
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;I&nbsp;believe&nbsp;this&nbsp;folder&nbsp;contains&nbsp;shape&nbsp;files(?)  
&nbsp;  
My&nbsp;question&nbsp;is,&nbsp;could&nbsp;the&nbsp;problem&nbsp;be&nbsp;caused&nbsp;by&nbsp;the&nbsp;program&nbsp;or&nbsp;shape&nbsp;files&nbsp;being&nbsp;out&nbsp;of&nbsp;date?  
&nbsp;  
&nbsp;  
&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [May 15, 2013, 7:27am UTC](https://community.thinkgeo.com/t/advancedgeocode-method-returning-wrong-state/2236/2 "2013-05-15T07:27:28Z")

</div>

&nbsp;Hi&nbsp;Patrick,

&nbsp;

Thanks&nbsp;for&nbsp;your&nbsp;post,&nbsp;and&nbsp;welcome&nbsp;to&nbsp;mapsuite&nbsp;world,&nbsp;We&nbsp;used&nbsp;the&nbsp;latest&nbsp;version&nbsp;of&nbsp;geocoder,&nbsp;but&nbsp;the&nbsp;problem&nbsp;didn’t&nbsp;show&nbsp;up,&nbsp;would&nbsp;you&nbsp;please&nbsp;let&nbsp;us&nbsp;know&nbsp;what&nbsp;version&nbsp;you&nbsp;are&nbsp;using?&nbsp;As&nbsp;far&nbsp;as&nbsp;we&nbsp;guessed,&nbsp;it&nbsp;shouldn't&nbsp;be&nbsp;version&nbsp;2.2.&nbsp;also&nbsp;is&nbsp;it&nbsp;possible&nbsp;to&nbsp;provide&nbsp;a&nbsp;simple&nbsp;demo&nbsp;for&nbsp;us&nbsp;including&nbsp;your&nbsp;.DLLs&nbsp;to&nbsp;[forumsupport@thinkgeo.com](http://forumsupport@thinkgeo.com)&nbsp;

Here&nbsp;is&nbsp;a&nbsp;captured&nbsp;video&nbsp;of&nbsp;our&nbsp;test,&nbsp;please&nbsp;check&nbsp;it&nbsp;out.

[screencast.com/t/XWS5Oe056Tql](http://screencast.com/t/XWS5Oe056Tql)

&nbsp;

Hope&nbsp;it&nbsp;helps

&nbsp;

Johnny
