I am not sure what I am doing wrong but when I only want to specify a county and state as the address locator - no results come back - can someone please provide me with some guidance on how to use this api correctly.
my javascript so far:
var address = {
county: "Ocean",
state: "NJ"
};
this.locator.addressToLocations(address);
It works fine when I use all the specific address variables like this:
var address = {
address : "",
city: "",
state: "",
zZip: ""
};
dojo.forEach(this.locatorFields, dojo.hitch(this, function(name) {
address[name] = this.widgets[name].getValue();
}));
Thanks for your continued help