Find stops along a route
goplaces_route_searchFind places along a route between two locations, ranked by detour time. Returns detour time plus route distance and duration for stops like coffee or EV charging.
Instructions
Find places along a route between two locations, ranked by how little they detour from it. Returns each result's detour time plus the direct route's distance and duration. Use for requests like 'coffee stops between Seattle and Portland' or 'EV charging on the way to Portland'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Route travel mode. | drive |
| limit | No | Maximum stops to return. | |
| query | Yes | Place search text to find along the route, e.g. 'coffee' or 'EV charging'. | |
| region | No | Optional CLDR region code, for example 'US' or 'DE'. | |
| to_text | Yes | Destination address or place name. | |
| language | No | Optional BCP-47 language code, for example 'en' or 'en-US'. | |
| open_now | No | When true, only places currently open. | |
| from_text | Yes | Origin address or place name. | |
| include_ev | No | Include EV charging connectors, charge rates, and availability. | |
| min_rating | No | Minimum star rating from 0 to 5. | |
| detail_level | No | Field tier to request. Google bills at the most expensive tier in the request, so prefer the cheapest that answers the question: 'ids' returns place IDs only, 'basic' adds name, address, location, type, and a Maps link, and 'full' adds rating, price, hours, phone, and website. | full |
| ev_connector_types | No | Keep only places supporting one of these Google connector types, e.g. ['EV_CONNECTOR_TYPE_CCS_COMBO_2', 'EV_CONNECTOR_TYPE_NACS', 'EV_CONNECTOR_TYPE_J1772', 'EV_CONNECTOR_TYPE_TESLA', 'EV_CONNECTOR_TYPE_CHADEMO', 'EV_CONNECTOR_TYPE_TYPE_2']. | |
| include_atmosphere | No | Include the most expensive tier: editorial summary, dine-in/takeout/delivery/reservable, accessibility, and parking options. | |
| ev_min_charge_rate_kw | No | Keep only charging stations at or above this rate in kilowatts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only on failure; the result is also flagged isError. | |
| route | No | The direct route the detour times are measured against. | |
| results | No |