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 9 of 9

Two results for one address :-(

This is a discussion on Two results for one address :-( within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hey all, I'm using MapPoint 2006 Europe Standard (Version 13.00.18.1200) and the following code: Set oFindResultReferee = oMap.FindAddressResults(RefereeStreet, RefereeCity, , ...

  1. #1
    alex_kuechler is offline Junior Member Yellow Belt
    Join Date
    Jan 2007
    Posts
    17

    Two results for one address :-(

    Hey all,

    I'm using MapPoint 2006 Europe Standard (Version 13.00.18.1200) and the following code:

    Set oFindResultReferee = oMap.FindAddressResults(RefereeStreet, RefereeCity, , , RefereeZip, geoCountryGermany)
    If oFindResultReferee.ResultsQuality = geoFirstResultGood Then
    Set oLocReferee = oFindResultReferee.Item(1)
    Else
    RefereeAddress = RefereeCity & ", " & RefereeZip & ", " & RefereeState
    Set oLocReferee = oMap.FindPlaceResults(RefereeAddress)(1)
    End If

    That means I look for an specific address using street, City, Zip and CountryProperty and have to get one single result. If I'll find more than one result, I show a message (not in the code) and try to find something near the address. From a list of more than 200 addresses sometimes I'll get a resultlist from two same addresses like shown in the pic (attachment).
    Can anybody help me please. I have to process more than 500 addresses and I'm forced to use only correct addresses. I do not want to use something like:
    Set oLocReferee = oFindResultReferee.Item(2)
    or so, I need only correct addresss.

    I repet, this only occurs for 14 out of more than 500 addresses ...

    Thanks for your help. Alex
    Attached Images Attached Images

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: Two results for one address :-(

    Can you always just use the first one?

    Eric

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Two results for one address :-(

    Hi,

    if geoFirstResultGood then just use the first one as you do in your example.

  4. #4
    alex_kuechler is offline Junior Member Yellow Belt
    Join Date
    Jan 2007
    Posts
    17

    Re: Two results for one address :-(

    But, this can't be the solution to use simply the first address. Maybe there is a real difference between the result set of addresses.

    Please try "Buchaerstr. 8c, Jena, 07745, Deutschland" in Google Maps and also in http://http://local.live.com/. You will see, that with Microsofts local.live will return a result of two found addresses and both are the same! That's a bug not a feature Google returns only one correct result ...

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Two results for one address :-(

    Hi Alex,

    I'm not sure I understeand what you mean. I tryed the following:

    Code:
    string street = "Buchaerstr";
    string zip = "07745";
    string city = "jena";
    string othercity = "";
    string region      = "";
    GeoCountry country = GeoCountry.geoCountryGermany;
    
    FindResults results = MP.ActiveMap.FindAddressResults(street, city, othercity, region, zip, country);
    Console.WriteLine(results.ResultsQuality.ToString());
    
    if (results.ResultsQuality <= GeoFindResultsQuality.geoAmbiguousResults)
    foreach (object o in results) {
        Location loc = o as Location;
        if (loc != null) {
    	double Lat;
    	double Lon;
    	Pushpin PP = MP.ActiveMap.AddPushpin(loc, "");
    	PP.GoTo();
    	MPTools.CalcPos(MP.ActiveMap, loc, out Lat, out Lon);
    	Console.WriteLine(loc.Name + " " + Lat.ToString() + " " + Lon.ToString());
    	break;
        }
    I had the FirstResultGood and only 1 result. So what is wrong ?

  6. #6
    alex_kuechler is offline Junior Member Yellow Belt
    Join Date
    Jan 2007
    Posts
    17

    Re: Two results for one address :-(

    Please try: Buchaerstr. 8c, 07745, Jena, Deutschland instead. You will get two results for this adress. I'm sure ...

    Alex

  7. #7
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Two results for one address :-(

    Hi,

    With the number in the streetname I get geoAmbiguousResults as resultsQuality. But still only 1 result and that is: Buchaerstraße 8, 07745 Jena.

    this is the data I tryed with this time:

    Code:
    string street = "Buchaerstr 8c";
    string zip = "07745";
    string city = "jena";
    string othercity = "";
    string region      = "";
    GeoCountry country = GeoCountry.geoCountryGermany;
    
    FindResults results = MP.ActiveMap.FindAddressResults(street, city, othercity, region, zip, country);

  8. #8
    alex_kuechler is offline Junior Member Yellow Belt
    Join Date
    Jan 2007
    Posts
    17

    Re: Two results for one address :-(

    Hi,

    thanks for your help.
    I use VBA in an Excel Makro and if I watch the 'results' variable I get also an geoAmbiguousResult with 2(!) items. They have the same address, but different coordinates (please see attached file!). If you use the MapPoint application itself you'll get a box offering you two results, very close to each other, but not the same.

    The same will happen, when you try
    'Buchaerstr. 8c, 07745, Jena, Deutschland'
    on Live Local Search: two results with the same address, but with different GPS coordinates.

    I think thats not what they want ... at least not what I expect!

    Alex
    Attached Images Attached Images

  9. #9
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Two results for one address :-(

    Hi,

    Very strange. Sorry I dont have any explanation wy results are different.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Returning results from ShowFindDialog
    By mbdunkin in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-15-2005, 10:39 PM
  2. Property MatchingMethod results (VBA)
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-05-2004, 11:47 AM
  3. FindAddress Results in c#
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-21-2004, 06:00 PM
  4. help - new user, no results
    By Anonymous in forum Products: Pushpin Tool, Single State Mapper
    Replies: 1
    Last Post: 07-29-2003, 11:56 PM
  5. Search results in spanish?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-11-2003, 02:08 PM

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