Skip to main content
Table of Contents

Getting started with TMS FNC HERE Directions

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 HERE platform API key with Routing API access.

Add the component

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

Request directions

Request directionsPascalC++
{ Inside a button click handler: }
var
  Origin, Destination: TTMSFNCMapsCoordinateRec;
begin
  Origin.Latitude := 52.52;
  Origin.Longitude := 13.405;
  Destination.Latitude := 48.1351;
  Destination.Longitude := 11.582;
  TMSFNCHereDirections1.GetDirections(Origin, Destination);
end;
// Inside a button click handler:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  TTMSFNCMapsCoordinateRec Origin, Destination;
  Origin.Latitude = 52.5200;
  Origin.Longitude = 13.4050;
  Destination.Latitude = 48.1351;
  Destination.Longitude = 11.5820;
  TMSFNCHereDirections1->GetDirections(Origin, Destination);
}

Next steps

  • Guides — truck routing options and HERE-specific parameters.
  • API reference — full class reference.