I'll check over source when I get home. This could be left over from a limitation I had in my code where our internal locator required a city or zip. I'll see if I can fix that.
Thanks for pointing it out.
/**
* Will parse the item passed to this class and prepare it for
* use with ArcGIS Server geocoder.
* @param item
* @return
*/
protected function buildAddressObject(item:Object):Object
{
var address:String = "";
var city:String = "";
var state:String = "";
var zip:String = "";
var country:String = "USA";
if (_addressField.length > 0)
address = item[_addressField];
if (_cityField.length > 0)
city = item[_cityField];
if (_stateField.length > 0)
_stateField = item[_stateField];
if (_zipField.length > 0)
zip = item[_zipField];
if (_countryField.length > 0)
country = item[_countryField];
// You may need to modify these fields to work with your
// particular locator service
return {
Address:address,
City:city,
State:state,
Zip:zip,
Country:country
};
}
Sorry for the delay.
I've updated the source code this morning.
http://www.arcgis.com/home/item.html?id=c663df2846d04a6b9add92b66c637728
You can now define the output Spatial Reference wkid for your Locator service so that it will match your map services.
I tested it briefly without issue, but if anything does not work please let me know.
Thanks.