ReadSpeed |
Top Previous Next |
This method allows you to read speed for all links from a single DAT or DBF file.
Index points to a timearray, since speed is not stored in memory, but immediately turned into time on each link.
Specify the full filename, including path. Fieldindex is 0-based. If fieldname is defined, fieldindex is ignored. if mph=true, all speeds are assumed to be in mph and multiplied by 1.609 when read from the file.
If speed is 0 or negative for any link, it is ignored.
Syntax: ReadSpeed(index: integer; filename: string; fieldindex: integer; fieldname: string; mph: boolean);
|