MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2005
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";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 01-20-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 01-20-2005
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 01-20-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
adrress, europe, mappoint 2004, street, work


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 07:26 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Wengen Skiing
Wengen is known as one of those classic Swiss ski resorts that have a relaxed atmosphere and stunning scenery. Experience Wengen skiing holidays yourself, book online.

Flights to Greece
Find cheap flights to Greece on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Greece.

Holidays to Cuba
Situated between Jamaica and the Bahamas, Cuba has a delightful tropical climate and warm, clear waters with beaches of white sand. Check for cheap holidays to Cuba.

Cuba Holidays
Cuba holidays offer an exciting cultural and wonderful culinary experience. Book with The Holiday Place for a great deal.

Cheap Greece Holidays
For cheap Greece holidays make sure you know when to book and who to book with. Visit ulookubook.com to get help with doing both of those things. Why not time your visit with a Greek festival?

Holiday Comparison
We can help you with holiday comparison when you check out the options at Travel.co.uk

Holidays in Fuerteventura
Need a break? Go to the Canary Islands! Find information on holidays in Fuerteventura at On The Beach.


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