Skip to content

Commit

Permalink
Merge pull request #327 from sebastianknopf/324-docs-retain-feed_info
Browse files Browse the repository at this point in the history
improved documentation for retaining feed_info.txt
  • Loading branch information
leonardehrenfried authored Jan 24, 2025
2 parents 96acaf1 + 0fc4eca commit 5ee59d9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/onebusaway-gtfs-transformer-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,15 @@ example:
{"op":"retain","match":{"file":"routes.txt", "route_short_name":"B15"}, "retainBlocks":false}
```

If you retain for example some route using the snippet above, every entity which is not referenced by this route or any other entity in relation to this route
will also be removed. This includes reference-less information like feed_info.txt. To keep the optional feed_info.txt, simply retain the file like any other entity
type, but without an ID:
```
{"op":"retain", "match":{"file":"feed_info.txt"}}
```

This ensures, that a file is also retained regardless of any reference to the data in this file.

#### Remove an Entity

You can remove a specific entity from a feed.
Expand Down

0 comments on commit 5ee59d9

Please sign in to comment.