Table of Contents

Getting started with TMS FNC Google Places

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 Google Cloud API key with the Places API enabled.

Add the component

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

Search for places

{ Inside a button click handler: }
var
  Req: TTMSFNCPlacesRequest;
begin
  Req := TMSFNCGooglePlaces1.Requests.Add;
  Req.Query := 'restaurant';
  Req.Coordinate.Latitude := 48.8566;
  Req.Coordinate.Longitude := 2.3522;
  TMSFNCGooglePlaces1.GetPlaces;
end;

Next steps

  • Guides — search, detail lookup, and Google-specific data.
  • API reference — full class reference.