Skip to main content
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

Search for placesPascalC++
{ Inside a button click handler: }
var
  Location: TTMSFNCMapsCoordinateRec;
begin
  Location.Latitude := 48.8566;
  Location.Longitude := 2.3522;
  TMSFNCGooglePlaces1.GetAutoComplete('restaurant', Location);
end;
// Inside a button click handler:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  TTMSFNCMapsCoordinateRec Location;
  Location.Latitude = 48.8566;
  Location.Longitude = 2.3522;
  TMSFNCGooglePlaces1->GetAutoComplete("restaurant", Location);
}

Next steps

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