PTNA: news for Public Transport Network Analysis

Take a look here: Public Transport Network Analysis/Syntax of CSV data - OpenStreetMap Wiki under the title “CSV data import definition: @”. Try to read it and get an idea for what’s going on. Please give me feedback on how easy or hard it is to read and understand, and let me know if you have any ideas to make it clearer. Feel free to edit the page if you feel confident about it.

If you’re not familiar with “regular expressions” I expect this to be the hardest bit to understand, in which case I advise you to not go too deep into it at this stage, just know that regular expressions are a way to determine whether a string is of the right pattern. Technical details on how that works can come later.

Anyway, once you hopefully understand the idea for the templates and filters (which may require a few rounds of you asking questions), we need to create import filters/templates in this page: DE-BW-bodo-Linien/Template Test

I’ve already made appropriate filters for the first few sections:

== Züge
@train
...
@@train
-

== Busse

=== Stadtverkehre

==== Friedrichshafen
@route_id~^bod-17
...
@@route_id~^bod-17
@route_id~^(bod-18-0N3-1|rab-14-031-1)$
...
@@route_id~^(bod-18-0N3-1|rab-14-031-1)$
-

==== Überlingen
@route_id~^bod-15
...
@@route_id~^bod-15
-

== Fähren
@ferry
...
@@ferry

But I don’t know how well I did. I can’t read German!

Edit: of course, use the actual DE-BW-bodo-Linien CSV page as a basis