MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Verifying an address that is missing city info

This is a discussion on Verifying an address that is missing city info within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am trying to verify a number of addresses, all of which lack the city information. Is there any way ...


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 06-02-2004
Junior Member
White Belt
 
Join Date: May 2004
Posts: 4
Verifying an address that is missing city info

I am trying to verify a number of addresses, all of which lack the city
information. Is there any way to filter the results returned from a find
address, so that the only address objects returned are those that are in one of the four cities I am interested in? (All of the addresses are in the same state.)

I tried working with the ThresholdScore to resolve this issue, but it didn't
give me exactly what I want.

Can I use a FilterExpression to do this, if so, how? What about trying to match EntityType? (And how would I do this?)

Thanks!

nhc
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 06-24-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hi, if you have Postal or Zip codes, this method I wrote once might help you. Sorry about the indenting...it looks much better in Vis Studio.

Private Sub DeObfuscate(ByVal fr As MapPoint.FindResults, ByVal Results As GeoCodeResults, ByVal Map As Map, Optional ByVal MaxDistanceFromPcode As Double = 1)

'this function attempt to disobfuscate a "no good results" by testing all
'returned locations and comparing them to the location of a postal code. If
'an address level location is close to the postal code, it is deemed to be the valid one.

Dim aLoc As MapPoint.Location
Dim i As Long

'look for a postal code match
For i = fr.Count To 1 Step -1

aLoc = CType(fr.Item(i), Location)

If aLoc.Type = GeoShowDataBy.geoShowByPostal1 Then
Results.PcodeLoc = aLoc
Exit For
End If

Next

'if a postal code location was found, then scan the list again
'to see if there is a trust-worthy location
If Not Results.PcodeLoc Is Nothing Then
i = 0
For Each aLoc In fr
'scan each plausible location but give up after maximim of 5
'to avoid wasting time.
i = i + 1
If i > 5 Then
Exit For
End If

If aLoc.Type = GeoShowDataBy.geoShowByStreetAddress Or aLoc.Type = GeoShowDataBy.geoShowByDefault Then

If Map.Distance(aLoc, Results.PcodeLoc) < MaxDistanceFromPcode Then
Results.Loc = aLoc
Exit For
End If

End If
Next
End If

End Sub
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
address, city, info, missing, verifying


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
Am i Missing something in datamaps drjindal MapPoint 2006/2009 Discussion 1 07-20-2005 02:53 PM
Find city/address from GPS position GESwin MapPoint 2006/2009 Discussion 0 09-27-2004 04:56 AM
City, State and Country info for a loc found using lat/lng lavend MapPoint 2006/2009 Discussion 0 04-28-2004 03:17 PM
city and road info missing Anonymous MapPoint 2006/2009 Discussion 1 12-26-2003 01:47 PM
I know of at least 2 missing roads or bridges in m.... Anonymous MapPoint 2006/2009 Discussion 1 07-03-2002 11:23 AM


All times are GMT -5. The time now is 03:33 AM.


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


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