> For the complete documentation index, see [llms.txt](https://whitepaper.aitech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whitepaper.aitech.io/agentforge/tools/google_maps.md).

# google\_maps

[Google Maps Platform](https://developers.google.com/maps/documentation) provides APIs for geocoding, place search, place details, and route directions.

In Agent Forge, the Google Maps integration allows agents to turn addresses into coordinates, reverse geocode coordinates, look up places, search nearby businesses, run text searches, and retrieve directions. This is useful for location-aware assistants, field operations, travel workflows, logistics, lead enrichment, and local search automation.

## Usage Instructions

Provide a Google Maps API key, select the operation, and fill in the required location, place, query, or route fields. Different operations expose different required inputs.

## Tools

### `google_maps_geocode`

Convert a street address into geographic coordinates.

### `google_maps_reverse_geocode`

Convert latitude and longitude into address information.

### `google_maps_place_details`

Retrieve details for a known Google Place ID.

### `google_maps_nearby_search`

Search for places near a coordinate within a specified radius.

### `google_maps_text_search`

Search for places using a natural language query.

### `google_maps_directions`

Retrieve route directions between an origin and destination.

## Input

| Parameter     | Type   | Required                              | Description                                                 |
| ------------- | ------ | ------------------------------------- | ----------------------------------------------------------- |
| `apiKey`      | string | Yes                                   | Google Maps API key                                         |
| `address`     | string | For geocoding                         | Street address                                              |
| `lat`         | string | For reverse geocode and nearby search | Latitude                                                    |
| `lng`         | string | For reverse geocode and nearby search | Longitude                                                   |
| `placeId`     | string | For place details                     | Google Place ID                                             |
| `fields`      | string | No                                    | Comma-separated place detail fields                         |
| `radius`      | number | For nearby search                     | Search radius in meters                                     |
| `keyword`     | string | No                                    | Nearby search keyword                                       |
| `type`        | string | No                                    | Nearby search place type                                    |
| `query`       | string | For text search                       | Text search query                                           |
| `origin`      | string | For directions                        | Route origin                                                |
| `destination` | string | For directions                        | Route destination                                           |
| `mode`        | string | No                                    | Travel mode such as driving, walking, bicycling, or transit |

## Output

| Parameter      | Type   | Description               |
| -------------- | ------ | ------------------------- |
| `data`         | json   | Google Maps response data |
| `status`       | string | Google Maps status        |
| `errorMessage` | string | Google Maps error message |

## Notes

* Category: `tools`
* Type: `google_maps`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://whitepaper.aitech.io/agentforge/tools/google_maps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
