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
- Drop
TTMSFNCGooglePlacesfrom the TMS FNC Maps palette page onto a form. - Set the
APIKeyproperty to your Google API key.
Search for places
{ 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.