Google API Key Restrictions for TMS FNC Maps in Delphi Applications
Google provides several restriction types depending on the target platform and component usage.
1. TMS WEB Core Applications
Use a website domain restriction at the application level.
Example:
Restrict the API key to your specific domain (e.g., https://yourdomain.com).
2. Mobile Applications
Use application restrictions based on your mobile app identifiers:
- Android: Restrict by the app’s package name and SHA-1 certificate fingerprint.
- iOS: Restrict by the app’s bundle identifier.
3. Desktop Applications
a. Browser and REST Components
Applies to:
TMSFNCMaps, TMSFNCGoogleMaps, TMSFNCGeocoding, TMSFNCDirections, and similar components.
- Use IP address restrictions.
- Add the specific IPv6 address for each machine where the API key will be used.
b. Browser Components Only
Applies to:
TMSFNCMaps, TMSFNCGoogleMaps
- Set a website restriction with the following value:
about:blank
Reference
For detailed instructions on how to configure and restrict your Google API keys, please refer to the official documentation: