alex_kuechler
01-07-2007, 04:40 AM
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
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