Skip to content

Commit

Permalink
improved documentation for retaining a reference-less file like feed_…
Browse files Browse the repository at this point in the history
…info.txt, references #324
  • Loading branch information
sebastianknopf committed Jan 23, 2025
1 parent 2e1065c commit 3a39416
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 snipped 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 3a39416

Please sign in to comment.