preview_bus_route_update
Reviews proposed PTv2 bus route relation updates by preserving the relation ID and parent memberships while showing before snapshots, tag changes, and ordered stop or way replacements for verification before upload.
Instructions
Review updates to a mapped PTv2 bus direction, keeping its relation ID and parent memberships. Supply replacement stop or road IDs in travel order for the lists you want to change. Omitted lists and unrelated tags are preserved. tag_changes can set ref, from, to, name, operator or network. Use null to remove an optional tag. Review the before snapshot and the exact tag and ordered member changes (zero-based half-open ranges). For a relocated restricted stop, supply boarding_roles in stop order with null for retained roles and the observed role for the new stop. prepare_upload binds an eligible edit to the current relation version and account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"relation_id": "<relation_id>",
"source": "<source>"
},
"name": "preview_bus_route_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| way_ids | No | ||
| stop_ids | No | ||
| relation_id | Yes | ||
| tag_changes | No | ||
| driving_side | No | right | |
| source_basis | No | unconfirmed | |
| omitted_stops | No | ||
| boarding_roles | No | ||
| prepare_upload | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||