Getting started with TMS FNC Route Calculator
Prerequisites
- TMS FNC Core installed and the runtime package added to the project.
- TMS FNC Maps installed and the runtime package added to the project.
- A map control (e.g.
TTMSFNCMaps) already placed and configured on the form.
Add the control
- Drop
TTMSFNCRouteCalculator from the TMS FNC Maps palette page onto a form.
- Set the
Maps property to reference your map control instance.
Handle route completion
{ Inside your form's OnCreate event: }
begin
TMSFNCRouteCalculator1.Maps := TMSFNCMaps1;
end;
procedure TForm1.TMSFNCRouteCalculator1CalculateRoute(
Sender: TObject; ARoute: TTMSFNCRouteCalculatorRoute);
begin
{ ARoute contains segments, total distance, and duration }
end;
Next steps
- Guides — route building, undo/redo history, and GPX import/export.
- API reference — full class reference.