Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 1 of 1

Combination postalcode & primarycity

This is a discussion on Combination postalcode & primarycity within the Development forums, part of the MapPoint Desktop Discussion category; Hello, I'm trying to find a city in combination with it's postalcode using the FindServiceSoap.FindAddress method. There is no problem ...

  1. #1
    MarcVP is offline Junior Member White Belt
    Join Date
    May 2009
    Posts
    2

    Combination postalcode & primarycity

    Hello,

    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 ***
    Last edited by MarcVP; 05-05-2009 at 07:00 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Change Skipped Records to Match by PostalCode
    By FrankVfp in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-28-2008, 02:52 PM
  2. Hold color on postalcode in any zoom level
    By rlisario in forum Development
    Replies: 0
    Last Post: 11-07-2007, 01:27 PM
  3. Hold color on postalcode in any zoom level
    By rlisario in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-07-2007, 01:21 PM
  4. Extracting PostalCode from Search-Results
    By MartinH in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-19-2006, 06:52 AM
  5. Customizing color combination in ShowData MappingWizard
    By bgopal in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-14-2005, 09:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80