I'm trying to find a city in combination with it's postalcode using the FindServiceSoap.FindAddress method. There is no problem if I pass the correct postalcode and primaryCity; it returns the correct result.
But if I pass for example '2000', which is a correct postalcode, in combination with 'nonExistingCity' as primaryCity, I'd expect that the 'NumberFound' property should return 0.
This doesn't seem to be the case. If I print out the 'FoundLocation.Entity.DisplayName' it shows '2000 (postcode), Belgium'.
It's like MapPoint is using an 'OR' statement instead of 'AND'.
I also did a small test on 'http://maps.live.be/' (click on 'locaties') with the same string ('2000 nonExistingCity, Belgium') and it does return a result!?
Is there any way to combine the postalcode with the primarycity?
Thanks in advance!!
*** begin code ***
FindAddressSpecification findAddressSpec = new FindAddressSpecification();
findAddressSpec.InputAddress = new Address();
findAddressSpec.InputAddress.PrimaryCity = "2000";
findAddressSpec.InputAddress.PostalCode = "nonExistingCity";
findAddressSpec.InputAddress.Subdivision = "";
findAddressSpec.InputAddress.CountryRegion = "Belgium";
findAddressSpec.DataSourceName = "MapPoint.EU";
findAddressSpec.Options = new FindOptions();
findAddressSpec.Options.ThresholdScore = 0.85;
findAddressSpec.Options.Range = new FindRange();
findAddressSpec.Options.Range.StartIndex = 0;
findAddressSpec.Options.Range.Count = 100;
FindResults results = findServiceSoap.FindAddress(findAddressSpec);
*** end code ***