google-maps-platform
Skill13 starsChanged 26 days agoMITView on GitHub
Verification Tier: code_example_tested | Last Verified: 2026-11-18 Official Docs: https://developers.google.com/maps/documentation/places/web-service/overview
- Reads credentials
- Sends data out
1 other project uses a version of this.
Adopted by
Most recently taken up by
- googlemaps/agent-skillstheir own version, first seen Nov 4, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- googlemaps/agent-skills★ 77same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository140 other files it gives its agents.
- algoliaSkill
- anthropic-mcpSkill
- anthropicSkill
- argo-cdSkill
- auth0Skill
- aws-bedrockSkill
- aws-dynamodbSkill
- aws-lambdaSkill
- aws-s3Skill
- azure-blob-storageSkill
- azure-openaiSkill
- better-authSkill
- better-sqlite3Skill
- biomeSkill
- braintreeSkill
- bullmqSkill
- caddySkill
- chromadbSkill
- clerkSkill
- cloudflare-d1Skill
- cloudflare-r2Skill
- cloudflareSkill
- cloudflare-workersSkill
- cloudinarySkill
- cohereSkill
- convexSkill
- datadogSkill
- deepgramSkill
- deepseekSkill
- deno-deploySkill
- digitaloceanSkill
- discordSkill
- dockerSkill
- drizzleSkill
- elevenlabsSkill
- eslintSkill
- expressSkill
- fastapiSkill
- firebaseSkill
- flySkill
- geminiSkill
- github-actionsSkill
- githubSkill
- gitSkill
- google-cloud-runSkill
- google-cloud-storageSkill
- grafanaSkill
- groqSkill
- helmSkill
- honoSkill
- inngestSkill
- jaegerSkill
- jwtSkill
- kafkaSkill
- kubernetesSkill
- langchainSkill
- langfuseSkill
- langgraphSkill
- lemon-squeezySkill
- linearSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Use separate API keys for frontend JS Maps (HTTP-referrer restricted) and backend Places/Routes calls (IP restricted, stored in server env …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Google Maps Platform (Places New v1 & Routes v1) Skill
Verification Tier:
code_example_tested| Last Verified: 2026-11-18
Official Docs: https://developers.google.com/maps/documentation/places/web-service/overview
Overview
Modern Google Maps server integrations use Places API (New) (https://places.googleapis.com/v1/places:searchText) and Routes API v2 (https://routes.googleapis.com/directions/v2:computeRoutes) instead of legacy Directions/Places endpoints.
Authentication
Pass your API key in the X-Goog-Api-Key request header (not in URL query strings, which leak into access logs). Restrict server keys by IP address and enabled APIs in Google Cloud Console, and restrict browser keys by HTTP referrer.
const res = await fetch('https://places.googleapis.com/v1/places:searchText', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Goog-Api-Key': process.env.GOOGLE_MAPS_API_KEY!,
'X-Goog-FieldMask': 'places.id,places.displayName,places.formattedAddress',
},
body: JSON.stringify({ textQuery: 'specialty coffee San Francisco', pageSize: 5 }),
});Core Concepts
- Mandatory
X-Goog-FieldMaskHeader: Both Places (New) and Routes APIs requireX-Goog-FieldMask. Requests without it fail with400 INVALID_ARGUMENT. - SKU Billing Control: Google bills per-request according to the highest SKU tier among the fields requested in
X-Goog-FieldMask. PassingX-Goog-FieldMask: *returns every field and triggers the most expensive Enterprise + Atmosphere SKU tier—never use wildcard*in production. - Session Tokens: For Place Autocomplete, generate a UUID
sessionTokenper typing session and pass the same token to Place Details to group billing accurately.
Error Handling & Rate Limits
- Handle HTTP
429 RESOURCE_EXHAUSTEDwith exponential backoff and cache immutable geocoding/place metadata only within Google Maps Platform Terms of Service limits (Place IDs may be stored indefinitely; lat/lng and other attributes have strict caching rules).
Security Best Practices
- Use separate API keys for frontend JS Maps (HTTP-referrer restricted) and backend Places/Routes calls (IP restricted, stored in server env vars).
- Set daily quota caps and Cloud Billing budget alerts to prevent runaway map spend.
AI Pitfalls
- Omitting
X-Goog-FieldMaskor usingX-Goog-FieldMask: *in production (causes400errors or unexpected 3–5x SKU charges). - Calling legacy
maps.googleapis.com/maps/api/place/textsearch/jsonendpoints on newly created GCP projects where legacy APIs are disabled. - Passing API keys in query strings (
?key=...) instead ofX-Goog-Api-Keyheaders.
Production Checklist
X-Goog-Api-Keysent via header with API + IP/referrer restrictions- Minimal explicit
X-Goog-FieldMaskspecified on every Places/Routes request (no*) - Autocomplete flows attach a per-session UUID
sessionToken - Cloud Billing budget alert and per-API quota cap configured
References
Related skills
mapbox— alternative togoogle-cloud-run— works well withnextjs— integrates with
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

