Get one trail system
ourpr_get_trail_systemRead one trail system: how many miles of path it holds, how many ways were mapped, where it sits, and where the measurement came from.
Args:
slug (string): From ourpr_list_trail_systems. Example: 'trinity-trails'.
response_format ('markdown' | 'json'): Default 'markdown'.
Returns: { "slug": string, "name": string, "region": string | null, "total_mi": number, // every branch summed "mapped_ways": number | null, // OpenStreetMap ways in the network "source": string | null, // how the network and its coverage were built "bbox": { "min_lat": number, "min_lng": number, "max_lat": number, "max_lng": number } | null, "page_url": string }
total_mi counts the whole network. It is not a distance anyone runs in one go.
Examples:
"How many miles of trail are in Fort Worth?" -> slug="trinity-trails"
"Where does the network reach?" -> read bbox
Error handling:
Returns the slug list suggestion when the slug is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The trail system's slug. Example: 'trinity-trails'. | |
| response_format | No | Output format. 'markdown' reads well in a chat answer. 'json' carries every field for further computation. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | ||
| name | Yes | ||
| slug | Yes | ||
| region | Yes | ||
| source | Yes | ||
| page_url | Yes | ||
| total_mi | Yes | ||
| mapped_ways | Yes |