Skip to main content
Table of Contents

Getting started with TMS FNC TomTom

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 TomTom Developer API key.

Add the control

  1. Drop TTMSFNCTomTom from the TMS FNC Maps palette page onto a form.
  2. Set the APIKey property to your TomTom API key.

Add a marker

Add a markerPascalC++
{ Inside your form's OnCreate event: }
var
  Marker: TTMSFNCTomTomMarker;
begin
  Marker := TMSFNCTomTom1.Markers.Add;
  Marker.Coordinate.Latitude := 52.3676;
  Marker.Coordinate.Longitude := 4.9041;
  Marker.Title := 'Amsterdam';
end;
// Inside your form's OnCreate event:
void __fastcall TForm1::FormCreate(TObject *Sender)
{
  TTMSFNCTomTomMarker *Marker = TMSFNCTomTom1->Markers->Add();
  Marker->Coordinate->Latitude = 52.3676;
  Marker->Coordinate->Longitude = 4.9041;
  Marker->Title = "Amsterdam";
}

Next steps