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

Get Street Adrress doesn't work on MapPoint 2004 Europe

This is a discussion on Get Street Adrress doesn't work on MapPoint 2004 Europe within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, Below is my code in C++, what I try to do is looking for a group of places nearby ...

  1. #1
    Van
    Van is offline Junior Member White Belt
    Join Date
    Jan 2005
    Posts
    8

    Get Street Adrress doesn't work on MapPoint 2004 Europe

    Hi,

    Below is my code in C++, what I try to do is looking for a group of places nearby a location, then for each place found, I display the name, street address . The same code works well for MapPoint 2004 North America, but with MapPoint 2004 Europe, it doesn't return street address, only postcode and phone number of each place found. But if I click on the map itself, it shows the street address.





    double dRad = 2; // 2Km radius
    oFoundResults = mpLoc.FindNearby(dRad);
    Cnt = oFoundResults.GetCount();

    VARIANT vIdx;
    vIdx.vt = VT_I4;
    vIdx.lVal = 1; // this index would be in a loop upto Cnt

    oLoc = (Location) oFoundResults.GetItem(&vI);


    CString Name = oLoc.GetName();
    oSA = (StreetAddress) oLoc.GetStreetAddress();

    CString strAddress = oSA.GetStreet(); // this works in North America, but doesn't work in Europe

    CString strDetails = oSA.GetValue(); // get street address and phone number
    if (strDetails.GetLength() == 0)
    strDetails = "No Address";

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

    I think FindNearby does not return street addresses, only points of interest. ObjectsFromPoint does, but it will give no radius. That's to do yourself.

  3. #3
    Van
    Van is offline Junior Member White Belt
    Join Date
    Jan 2005
    Posts
    8
    Hi,

    The strange thing is that same code works fine for locations in America (MapPoint 2004 N. America).
    It also works fine for locations in UK (MapPoint 2004 Europe), but not Spain, France and Germany.

    For the country that it works, the GetStreet() method or GetValue()returns full street name some even has phone number.

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

    Maybe this is because of the way zip codes are interpreted ? For example I have learned that a postal code point to an address in US. Same in UK. I think in the netherlands also. But in most countries it is only reffering to a villeage or region, like in Belgium where I live.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapPoint 2004 EU Europe Maps
    By Eric Frost in forum News and Announcements
    Replies: 0
    Last Post: 01-15-2006, 12:10 PM
  2. Map layout is web service as in MapPoint 2004 Europe
    By eblubber in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 02-15-2005, 03:33 AM
  3. mappoint europe 2004 and visual basic 6.0
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 19
    Last Post: 05-05-2004, 11:44 PM
  4. Mappoint 2002 Europe Street name extraction via lat long
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-07-2004, 05:16 PM
  5. MapPoint 2004 Europe & America
    By dbea23 in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 11-15-2003, 04: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 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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127