Community of VE/MapPoint Users and Developers
This is a discussion on map.FindAddressResults Problems within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello together, First i have to excuse for my very bad englich . So i dind´t come along with finding ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| map.FindAddressResults Problems First i have to excuse for my very bad englich So i dind´t come along with finding adresses in Mappoint 2006 in c#. My example address is : "Fränklinstr. 22, 1069, Dresden, Germany" In mappoint windows programm the adress is no problem and i get one result. But in my c# code i get as resultQuality : noGoodResult ! Have i forgotten something or why is the same adress so different ? Or another example : Adress is postalcode an Country : "5020, Austria" In Mappoint Programm i get many adresses and one Postalcode match like on the top. in my c# programm i get noResult ! Here is my Code : Code:
//First i parse my Address from a ListView
MapPoint.StreetAddress adress = map.ParseStreetAddress("" + ls.Items[i].SubItems[1].Text.ToString() + ", " + ls.Items[i].SubItems[3].Text.ToString() + ", " + ls.Items[i].SubItems[2].Text.ToString() + ", " + ls.Items[i].SubItems[4].Text.ToString() + "");
string streetName = adress.Street;
string city = adress.City;
string postcode = adress.PostalCode;
// a class for my Items
cItems myItem = newcItems();
myItem.str = streetName;
myItem.plz = postcode;
myItem.ort = city;
myItem.county = Convert.ToString(ls.Items[i].SubItems[4].Text);
//then i do the find address
string GEOC = "MapPoint.GeoCountry.geoCountry" + myItem.county;
MapPoint.FindResults findresults = map.FindAddressResults(myItem.str, myItem.ort, string.Empty, string.Empty, myItem.plz, GEOC);
string rq = Convert.ToString(findresults.ResultsQuality);
if (rq == "geoFirstResultGood")
{
myItem.rq = "Gut";
}
and so on ....
Hope anyone can help me. Thanks a lot Bye |
| |||
| Re: map.FindAddressResults Problems
Hi there, this may not be much help but I tried your addresses using excel vba and didn’t have any problems. I tried your Dresden address with the following code and got just one result and the resulting pushpin looked spot on. locAddress1 = "Fränklinstr. 22" locPostcode = "01069" locCity = "Dresden" locCountry = "Germany" Set objFindResults = objMap.FindAddressResults(locAddress1, locCity, , , locPostcode, locCountry) Only thing I noticed was you quote the postcode as 1069 when it’s actually 01069 but that didn’t make any difference when run in vba. Could the issue be arising when you parse the address. Again with the Austrian postcode I got a good result with this code locPostcode = "5020" locCountry = "Austria" Set objFindResults = objMap.FindAddressResults(, , , , locPostcode, locCountry) Rgds
__________________ David MapPoint Europe Gallery at http://www.broomanalysis.plus.com/gallerylist.html |
![]() |
| ||||
| Posted By | For | Type | Date | |
| MapPoint Download - MP2K Magazine | This thread | Refback | 07-24-2008 03:23 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get the Best Matched Address from FindAddressResults. | gvkreddy | MapPoint 2006/2009 Discussion | 8 | 01-10-2005 05:05 AM |
| FindAddressResults returns nothing | Anonymous | MapPoint 2006/2009 Discussion | 5 | 12-07-2004 04:23 AM |
| Problem with FindAddressResults | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-01-2004 09:04 AM |
| FindAddressResults not always working? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-10-2003 05:25 AM |
| Need help about the FindAddressResults | Anonymous | MapPoint 2006/2009 Discussion | 3 | 08-21-2002 07:51 PM |
Three Valleys
Fancy a ski holiday in the legendary Three Valleys? Don't miss out on bargain holidays at Holiday Hypermarket. Check out the latest deals from leading operators.
Travel Agency
We are a Queen's Award winning travel agency here to help with your travel plans.
Turkey Holidays
Istanbul is Turkey's prime attraction as it has the most beautiful mosques and palaces of the country; it has Byzantine churches and Roman temples. Book Turkey Holidays online.
Dubai Holidays
Dubai holidays provide you with exotic sights, desert safaris and superb cuisine. There is an extensive range of things to do and see!
Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com
Cheap Travel
For cheap travel options, visit Travel.co.uk and explore the benefits of our comparison site.
Cheap Holidays to Gran Canaria
Book a flight to the Canary Islands! View information on cheap holidays to Gran Canaria online at On The Beach.