At the begining of your function set the Find properties:
Find Using
Options
Abbrs On 'Matches using the
Mapinfow.abb file
ClosestAddr On 'Matches to closest address
range, as you indicated you would like
OtherBdy On 'Matches using the refining
region as specified
I would recommend adjusting your Mapinfow.abb file as desired and setting on
Abbr and ClosestAddr.
Michael Hanna
Industrial Engineering
United Parcel Service Canada Ltd.
(905) 660-8688
-----Original Message-----
From: James A Komenda [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 9:35 AM
To: [EMAIL PROTECTED]
Subject: MI-L Finding an Address
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
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 5778