Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Get Street Adrress doesn't work on MapPoint 2004 Europe within the MapPoint 2006/2009 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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Get Street Adrress doesn't work on MapPoint 2004 Europe 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"; |
| |||
|
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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
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. |
| |||
|
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.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| adrress, europe, mappoint 2004, street, work |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MapPoint 2004 EU Europe Maps | Eric Frost | News and Announcements | 0 | 01-15-2006 11:10 AM |
| Map layout is web service as in MapPoint 2004 Europe | eblubber | MapPoint 2006/2009 Discussion | 3 | 02-15-2005 02:33 AM |
| mappoint europe 2004 and visual basic 6.0 | Anonymous | MapPoint 2006/2009 Discussion | 19 | 05-05-2004 10:44 PM |
| Mappoint 2002 Europe Street name extraction via lat long | Anonymous | MapPoint 2006/2009 Discussion | 2 | 01-07-2004 04:16 PM |
| MapPoint 2004 Europe & America | dbea23 | MapPoint 2006/2009 Discussion | 2 | 11-15-2003 03:08 PM |
Madeira Holiday
Why not book a Madeira holiday through UlookUbook and enjoy this warm Portuguese island at a bargain price!