Google Maps CLI Setup Google Maps can be configured headlessly with `kosmokrator integrations:configure google-maps`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure google-maps --set api_key=" $GOOGLE_MAPS_API_KEY " --enable --read allow --write ask --json
kosmokrator integrations:doctor google-maps --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call Google Maps Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call google-maps.google_maps_geocode_address '{
"address": "example_address",
"components": "example_components",
"region": "example_region",
"language": "example_language"
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:google-maps google_maps_geocode_address '{
"address": "example_address",
"components": "example_components",
"region": "example_region",
"language": "example_language"
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs google-maps --json
kosmo integrations:docs google-maps.google_maps_geocode_address --json
kosmo integrations:schema google-maps.google_maps_geocode_address --json
kosmo integrations:search "Google Maps" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Google Maps.
google-maps.google_maps_geocode_address Read read Convert a street address into geographic coordinates and place details using Google Maps geocoding.
address, components, region, language kosmo integrations:call google-maps.google_maps_geocode_address '{"address":"example_address","components":"example_components","region":"example_region","language":"example_language"}' --json copy kosmo integrations:google-maps google_maps_geocode_address '{"address":"example_address","components":"example_components","region":"example_region","language":"example_language"}' --json copy
google-maps.google_maps_reverse_geocode Read read Convert latitude and longitude coordinates into street addresses using Google Maps reverse geocoding.
latitude, longitude, components, language, result_type, location_type kosmo integrations:call google-maps.google_maps_reverse_geocode '{"latitude":1,"longitude":1,"components":"example_components","language":"example_language","result_type":"example_result_type","location_type":"example_location_type"}' --json copy kosmo integrations:google-maps google_maps_reverse_geocode '{"latitude":1,"longitude":1,"components":"example_components","language":"example_language","result_type":"example_result_type","location_type":"example_location_type"}' --json copy
google-maps.google_maps_search_places Read read Search for places with a text query using Google Maps Places search.
query, location, radius, language, type, open_now, min_price, max_price kosmo integrations:call google-maps.google_maps_search_places '{"query":"example_query","location":"example_location","radius":1,"language":"example_language","type":"example_type","open_now":true,"min_price":1,"max_price":1}' --json copy kosmo integrations:google-maps google_maps_search_places '{"query":"example_query","location":"example_location","radius":1,"language":"example_language","type":"example_type","open_now":true,"min_price":1,"max_price":1}' --json copy
google-maps.google_maps_get_place_details Read read Get detailed information about a specific Google Maps place by Place ID.
place_id, fields, language, region, reviews_no_translations, reviews_sort kosmo integrations:call google-maps.google_maps_get_place_details '{"place_id":"example_place_id","fields":"example_fields","language":"example_language","region":"example_region","reviews_no_translations":"example_reviews_no_translations","reviews_sort":"example_reviews_sort"}' --json copy kosmo integrations:google-maps google_maps_get_place_details '{"place_id":"example_place_id","fields":"example_fields","language":"example_language","region":"example_region","reviews_no_translations":"example_reviews_no_translations","reviews_sort":"example_reviews_sort"}' --json copy
google-maps.google_maps_get_directions Read read Get directions between an origin and destination using Google Maps Directions API.
origin, destination, mode, waypoints, alternatives, avoid, language, units, departure_time, arrival_time, transit_mode, transit_routing_preference kosmo integrations:call google-maps.google_maps_get_directions '{"origin":"example_origin","destination":"example_destination","mode":"example_mode","waypoints":"example_waypoints","alternatives":true,"avoid":"example_avoid","language":"example_language","units":"example_units"}' --json copy kosmo integrations:google-maps google_maps_get_directions '{"origin":"example_origin","destination":"example_destination","mode":"example_mode","waypoints":"example_waypoints","alternatives":true,"avoid":"example_avoid","language":"example_language","units":"example_units"}' --json copy
google-maps.google_maps_get_distance_matrix Read read Calculate travel distances and durations between multiple origins and destinations.
origins, destinations, mode, language, units, departure_time, arrival_time, avoid, transit_mode, transit_routing_preference kosmo integrations:call google-maps.google_maps_get_distance_matrix '{"origins":"example_origins","destinations":"example_destinations","mode":"example_mode","language":"example_language","units":"example_units","departure_time":"example_departure_time","arrival_time":"example_arrival_time","avoid":"example_avoid"}' --json copy kosmo integrations:google-maps google_maps_get_distance_matrix '{"origins":"example_origins","destinations":"example_destinations","mode":"example_mode","language":"example_language","units":"example_units","departure_time":"example_departure_time","arrival_time":"example_arrival_time","avoid":"example_avoid"}' --json copy
google-maps.google_maps_get_current_user Read read Get geolocation data for the current requester and verify Google Maps API credentials.
none kosmo integrations:call google-maps.google_maps_get_current_user '{}' --json copy kosmo integrations:google-maps google_maps_get_current_user '{}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Read read
Schema command kosmo integrations:schema google-maps.google_maps_geocode_address --json
Operation Read read
Schema command kosmo integrations:schema google-maps.google_maps_reverse_geocode --json
Operation Read read
Schema command kosmo integrations:schema google-maps.google_maps_search_places --json
Operation Read read
Schema command kosmo integrations:schema google-maps.google_maps_get_place_details --json
Operation Read read
Schema command kosmo integrations:schema google-maps.google_maps_get_directions --json
Operation Read read
Schema command kosmo integrations:schema google-maps.google_maps_get_distance_matrix --json
Operation Read read
Schema command kosmo integrations:schema google-maps.google_maps_get_current_user --json Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.