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

{ Inside a button click handler: }
var
  Req: TTMSFNCDirectionsRequest;
begin
  Req := TMSFNCHereDirections1.Requests.Add;
  Req.Origin.Latitude := 52.5200;
  Req.Origin.Longitude := 13.4050;
  Req.Destination.Latitude := 48.1351;
  Req.Destination.Longitude := 11.5820;
  TMSFNCHereDirections1.GetDirections;
end;

Next steps

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