mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 21:11:14 +00:00
docs(transit): describe the empty-result fallback between transit providers
Admin settings, transport, environment and MCP pages still said Transitous is the only fallback and that Google is billed only when picked. Document that an empty plan asks the other backend, that the Google fallback uses only an instance key within the daily limit, and mention it in the search_transit_routes tool description.
This commit is contained in:
@@ -110,7 +110,7 @@ export class TransitMcp {
|
||||
@Tool({
|
||||
name: 'search_transit_routes',
|
||||
description:
|
||||
'Search scheduled public-transit routes between two coordinates, via whichever backend the instance is configured for. Returns itineraries that can be passed unchanged to create_transit_journey, and `provider`, the backend that answered. `dropped` counts provider itineraries that failed validation and are therefore absent from the results — a non-zero value means the provider offered routes this tool could not represent.',
|
||||
'Search scheduled public-transit routes between two coordinates, via the backend the instance is configured for, falling back to the other backend when it finds no route. Returns itineraries that can be passed unchanged to create_transit_journey, and `provider`, the backend that answered. `dropped` counts provider itineraries that failed validation and are therefore absent from the results — a non-zero value means the provider offered routes this tool could not represent.',
|
||||
inputSchema: {
|
||||
from: transitPlaceInput,
|
||||
to: transitPlaceInput,
|
||||
|
||||
@@ -28,9 +28,10 @@ import type { TransitProvider } from '@trek/shared';
|
||||
* the same compact shape. Transitous remains the default. Empty plans try the
|
||||
* other backend when available; Google fallback requires an admin-set key.
|
||||
*
|
||||
* Both responses name the backend that answered. The fallback is silent by
|
||||
* design, so without this an empty result is indistinguishable between "this
|
||||
* provider has no data here" and "the provider you picked never ran" — which is
|
||||
* Both responses name the backend that answered. Both fallbacks (no Google key,
|
||||
* and the empty-plan retry) are silent by design, so without this an empty
|
||||
* result is indistinguishable between "this provider has no data here" and
|
||||
* "the provider you picked never ran" — which is
|
||||
* exactly the guessing game a Paris search ran into when the Île-de-France feed
|
||||
* ended before the trip date.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user