- [JSON representation](https://developers.google.com/maps/ai/maps-experience-agent-tools/reference/rest/Shared.Types/SearchAlongRouteResponse.md.txt#SCHEMA_REPRESENTATION)
- [Result](https://developers.google.com/maps/ai/maps-experience-agent-tools/reference/rest/Shared.Types/SearchAlongRouteResponse.md.txt#Result)
  - [JSON representation](https://developers.google.com/maps/ai/maps-experience-agent-tools/reference/rest/Shared.Types/SearchAlongRouteResponse.md.txt#Result.SCHEMA_REPRESENTATION)

Response message for SearchAlongRoute.

| JSON representation |
|---|
| ``` { "results": [ { object (`Result`) } ], "summary": string, "contentToken": string } ``` |

| Fields ||
|---|---|
| `results[]` | ``object (`Result`)`` Output only. The ranked list of search results found along the route. |
| `summary` | `string` Output only. Natural language summary of search results and detour trade-offs. May contain zero-based citations (e.g. "\[0\]", "\[1\]") referencing the corresponding entries in the `results` list. |
| `contentToken` | `string` Output only. An encrypted token that encapsulates the search context and can be passed to Google Maps visual rendering services, SDKs, or the Maps Agentic UI Toolkit (A2UI) to display interactive UI components for the returned search results. |

## Result

A search result along the route, pairing a place with its detour metrics.

| JSON representation |
|---|
| ``` { "place": { object (`PlaceView`) }, "detourSummary": { object (`DetourSummary`) } } ``` |

| Fields ||
|---|---|
| `place` | ``object (`PlaceView`)`` Output only. Details about the place found along the route. |
| `detourSummary` | ``object (`DetourSummary`)`` Output only. Detour metrics incurred by adding this place as an intermediate stop along the route. Omitted or empty if detour metrics could not be calculated. |