Call it
curl https://api.peume.com/v1/call/google-maps-suggest-map-places \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"ll": "your ll",
"q": "your q"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-maps-suggest-map-places", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"ll": "your ll",
"q": "your q"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-maps-suggest-map-places",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"ll": "your ll",
"q": "your q"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: google-maps-suggest-map-places.
Parameters
llRequiredstringThe GPS coordinates of the location where you want the search to originate from. Its value must match the following format: `@` + `latitude` + `,` + `longitude` + `,` + `zoom/map_height` This will form a string that looks like this: e.g. `@40.7455096,-74.0083012,14z` or `@43.8521864,11.2168835,10410m`. The `zoom` attribute ranges from `3z`, map completely zoomed out - to `21z`, map completely zoomed in. Alternatively, you can specify `map_height` in meters (e.g., `10410m`).
qRequiredstringThe search query. A query that would be used to provide completion options.
hlstringThe language to use for the Google Maps Autocomplete search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish).
glstringThe country to use for the Google Maps Autocomplete search. It's a two-letter country code. (e.g., `us` for the United States, `uk` for United Kingdom, or `fr` for France)
cpstringCursor pointer defines the position of cursor for the query provided, position starts from 0 which is a case where cursor is placed before the query `|query`. If not provided acts as cursor is placed in the end of query `query|`.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
