Google Maps Platform adds maps, address lookup, directions and place search to your app.
What you can ask for#
Show a map of my shop with a pin and a Get directions button.
Turn the address in this form into coordinates and show nearby coffee shops, at most ten.
Plan the shortest delivery route through these five addresses.
Connect Google Maps Platform#
Step 1: Find the connector
Open Tools, then Connectors, and search for Google Maps Platform. You can also go to Settings, then Connectors, in your dashboard.
Step 2: Select Connect
Select Connect to open the secure form.
Step 3: Enter the details
Fill in Server API key, Browser API key, Service account JSON for Route Optimization (optional) and Google Cloud project ID for Route Optimization (optional). Hidden fields show as dots; use the eye icon to check what you typed.
Step 4: Save
Select Save connection. Swarmz encrypts the credentials and only decrypts them to call Google Maps Platform for you. Everyone in your workspace can then use the connection.
Where to find your credentials#
In Google Cloud, create two API keys in the same project. Use the server key for lookups and routes, and restrict it to the APIs you need. Use the browser key for the map on your pages, and restrict it to your site's address. Route Optimization also needs a service account JSON and the Google Cloud project ID. Enable each API you use in Google Cloud.
What the AI can and can't do#
- Show interactive maps, look up addresses and search places.
- Calculate routes, and optimise a fleet's routes if you added the service account.
- The server key stays on the server. Only the browser key is used in pages.
- Apps you publish can call this connector too, not just the builder.
- Changes ask for your approval by default. You can adjust this under Agent permissions on the connection. See What an integration can access.
Troubleshooting#
Google returns a permission error.
Enable the API in the same Google Cloud project, and check the key restrictions.
The map shows a watermark.
Billing may not be enabled for your Google Cloud project, or the browser key restriction does not match your site.
The key leaked.
Create a new key in Google Cloud, update the connection, then delete the old key.
General steps for any connector are in Connect an integration. Keys and secrets are covered in Secrets and API keys. To remove it, see Disconnect an integration.
What Swarmz can do with it
Maps and places
Build maps, place search, and location-aware interfaces with project-scoped credentials.
Extended location APIs
Validate addresses, inspect roads, weather, air quality, pollen, solar potential, aerial views, elevation, time zones, and area insights.
Fleet route optimization
Assign shipments to vehicles using capacities, costs, traffic, and time windows.
More in Maps & media
Still stuck?
A person from Swarmz Support can take a look.