I'm trying to improve the hit rate of address finding within my Mapbasic code.


Function FindPoint(ByVal a1 as String, ByVal c1 as String, x as Float, y as Float) as Logical
' a1, c1 - input assertions
' x, y - output assertions


   Find Using BaseStreet(Street)
       Refine Using BaseCity(Name)
   Find a1,c1
   If CommandInfo(CMD_INFO_FIND_RC) >= 1 Then
       x = CommandInfo(CMD_INFO_X)
       y = CommandInfo(CMD_INFO_Y)
       FindPoint = TRUE
   Else
       ErrorMessage = "Address ["+a1+"]-["+c1+"] not found."
       Call ErrorHandler(ErrorMessage)
       FindPoint = FALSE
   End If
End Function
)

As you can see in the above function if I do not find an exact match to the input address then I return an error address not found. Is there a better way to improve this process? Some of the cases that I run into ex: 500 Joseph St is not an exact match because the table information does not have the 500th block of Joseph street information but does have other possible matches 0-399, 400-499 as possible matches if you do the find by hand. Currently the app does not pop up the possible match dialog. Is it possible to get the information that is contained in the possible match dialog and use that to improve the hit rate by giving the next closes match? Any help is greatly appreciated!!!

Jim




--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5777



Reply via email to