Download MapOCX Pro v7.1 - UnderTow Software, Inc.
Transcript
Note: A different variable, "Street" is used for Street searches, as they are based on totally different
models, i.e., Street searches return multiple hits. Refer to the documentation for each of the search
operations to see the prospective contents of "Result".
VB Example
Private Sub Command39_Click()
' Display the Result from a ZipCode search, in a panel}
MapPro1.findzip val(text1.text)
label7.caption=OlPmMap1.Result
End Sub
Delphi
Procedure TForm2.Button4Click(Sender: TObject);
{ Display the Result from a ZipCode search, in a panel}
var z,code:longint;
begin
val(edit3.text,z,code);
MapPro1.findzip(z);
label7.caption:=MapPro1.Result;
end;
RoadOption(Option, Atrib:LongInt)
Procedure
Permits the user to set options to be used for the routing calculation without using the dialog described
in the ExecRoadOption method.
The parameters Option and Attrib are described below.
(a) When Option = 1..6, then the value of Attrib sets the travel speed (mph) for the road type identified
in Option.
Option Travel Speed for Type of Road
------- ---------------------------------------------1
Limited Access Highways (Tiger types A10..A18)
2
US and State Highways (Tiger types A20..A28)
3
Secondary Highways (Tiger types A30..A38)
4
Residential Roads (Tiger types A40..A48)
5
Trails (Tiger types A50..A53)
6
Other (Tiger types A60..A65)
(b) When Option = 17..22, then the value of Attrib sets the priority (0 to 5), of the road type identified in
Option,
Option Priority for Type of Road
------- ---------------------------------------------17 Limited Access Highways (Tiger types A10..A18)
18 US and State Highways (Tiger types A20..A28)
19 Secondary Highways (Tiger types A30..A38)
20 Residential Roads (Tiger types A40..A48)
21 Trails (Tiger types A50..A53)
22 Other (Tiger types A60..A65)
(c) When Option = 33..38, then the value of Attrib sets the gas mileage of the road type identified in
option,
132