Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Changelog
Browse Source
View Tickets
New Ticket
Roadmap
Builds
Sonar
Search
Context Navigation
+1
Start Page
Index
History
Editing Presets/PublicTransportGtfs
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
= Public Transport GTFS This preset adds additional tags for public transportation tagging. One major part are tags to use with [osmwiki:General_Transit_Feed_Specification GTFS] and **PTNA** ([osmwiki:Public_Transport_Network_Analysis OSM-Wiki], [https://ptna.openstreetmap.de/ website]). See [wikitr:/Rules/PublicTransportGtfs Public Transport Gtfs Rules] for some additional validator check. == Help needed Please, feel free to: * enhance and update the preset * translate * Due to #11392 translation is still only possible within the source code, [#SourceCode below]. * create some nice icons. * write me an [osmwww:message/new/skyper email] == Notes * This tagging schema is still under heavy development and therefore the preset might change quite often. * ~~**Watch out**: Due to #19392 it is dangerous to use the preset links within the presets if opened from the [wikitr:/Help/Dialog/RelationEditor relation editor].~~ == Supported Tags === GTFS / PTNA * [osmwiki:Key:ref:IFOPT ref:IFOPT] * [osmwiki:Key:ref:IFOPT ref:IFOPT:description] * [osmwiki:Key:gtfs:stop_id gtfs:stop_id] * [osmwiki:Proposed_features/Key:gtfs:route_id gtfs:route_id] * [osmwiki:Proposed_features/Key:gtfs:shape_id gtfs:shape_id] * [osmwiki:Proposed_features/Key:gtfs:trip_id gtfs:trip_id] * [osmwiki:Proposed_features/Key:gtfs:trip_id:sample gtfs:trip_id:sample] * [osmwiki:Key:network:guid network:guid] * [osmwiki:Proposed_features/Key:operator:guid operator:guid] * [osmwiki:Proposed_features/Key:gtfs:feed gtfs:feed] * [osmwiki:Proposed_features/Key:gtfs:name gtfs:name] * ~~[osmwiki:Proposed_features/Key:gtfs:source_date gtfs:source_date]~~ replace by `gtfs:release_date` * [osmwiki:Proposed_features/Key:gtfs:release_date gtfs:release_date] * [osmwiki:Key:note note:gtfs] ''(no own page)'' * ~~[osmwiki:Proposed_features/Key:ref:GTFS ref:GTFS] ''(no page, yet)''~~ not needed all information in `route_id` === Optional tags missing in defaultpresets PT-presets * [osmwiki:Key:destination destination] * [osmwiki:Tag:railway=stop railway=stop] * [osmwiki:Key:local_ref local_ref] * [osmwiki:Key:network network:short] * [osmwiki:Key:operator operator:short] * ~~[osmwiki:Key:opening_hours opening_hours]~~ in [source:/trunk/resources/data/defaultpresets.xml defaultpresets] ''(since r16710)'' * [osmwiki:Key:duration duration:condition] * [osmwiki:Key:interval interval:condition] * ~~[osmwiki:Key:fee fee]~~ in [source:/trunk/resources/data/defaultpresets.xml defaultpresets] ''(since r16710)'' * [osmwiki:Key:source source] * ~~[osmwiki:Key:website website]~~ in [source:/trunk/resources/data/defaultpresets.xml defaultpresets] ''(since r16710)'' * [osmwiki:Key:quality quality] ''(no page)'' == Preset source code == #SourceCode {{{ #!preset <?xml version="1.0" encoding="UTF-8"?> <presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0" link="https://josm.openstreetmap.de/wiki/Presets/PublicTransportGtfs" author="skyper" shortdescription="Public Transport GTFS" description="Additional tags for public transportation including tags for GTFS and PTNA" version="0.1.[[revision]]_[[date]]"> <!-- Chunks --> <chunk id="cond"> <text key="duration:conditional" text="Conditional duration" /> <text key="interval:conditional" text="Conditional interval" /> <item_separator /> </chunk> <chunk id="short"> <text key="network:short" text="Common short network" alternative_autocomplete_keys="network" /> <text key="operator:short" text="Common short operator" alternative_autocomplete_keys="operator" /> <item_separator /> </chunk> <chunk id="gtfs_name"> <text key="gtfs:name" text="GTFS name" alternative_autocomplete_keys="name" /> </chunk> <chunk id="feed_guid"> <text key="network:guid" text="General unified network id" match="key" /> <text key="operator:guid" text="General unified operator id" match="key" /> <text key="gtfs:feed" text="General GTFS feed" match="key" /> </chunk> <chunk id="feed_guid_name"> <label text=" Only one of the following tags is needed for PTNA: " /> <reference ref="feed_guid" /> <item_separator /> <text key="gtfs:release_date" text="Release date of the GTFS feed"/> <reference ref="gtfs_name" /> <item_separator /> <reference ref="short" /> </chunk> <chunk id="route_id"> <space /> <text key="gtfs:route_id" text="GTFS route id" match="key" /> </chunk> <chunk id="shape_id"> <space /> <text key="destination" text="The destination displayed on the vehicle (head) signs" /> <text key="gtfs:route_id" text="GTFS route id" /> <text key="gtfs:shape_id" text="GTFS shape id" match="key" /> <space /> <label text=" Use one of the following two tags, if no `shape_id` exists: " /> <text key="gtfs:trip_id:sample" text="One GTFS trip reference as sample (= `trip_id`)" match="key" /> <space /> <label text=" Only to be used if the relation represents one, single trip: " /> <text key="gtfs:trip_id" text="GTFS trip id" match="key" /> <item_separator /> </chunk> <chunk id="note_gtfs"> <text key="note:gtfs" text="Note about GTFS" /> </chunk> <chunk id="source_note"> <text key="source" text="Source" /> <reference ref="note_gtfs" /> </chunk> <chunk id="quality"> <multiselect key="quality" text="Quality" delimiter=", " values="complete, incomplete, ordered, partial_ordered, unsorted" values_searchable="true" values_sort="false" rows="6" /> </chunk> <chunk id="stop_all"> <space /> <link wiki="Key:ref:IFOPT" /> <label text=" Format is: `Country code`:`Admin area`:`General stop id`:`Level id`:`Quay id` " /> <space /> <label text=" Regex: [a-z]{3}:[0-9]{4,5}:[1-9][0-9]{0,4}:[0-9]{1,2}:[0-9a-zA-Z]+(.)* " /> <space /> <text key="ref:IFOPT" text="IFOPT reference" length="18" match="key" /> <text key="ref:IFOPT:description" text="IFOPT description" /> <text key="gtfs:stop_id" text="GTFS `stop_id`, use `ref:IFOPT` if possible" length="18" match="key" /> <reference ref="gtfs_name" /> <text key="gtfs:release_date" text="Release date of the GTFS feed" /> <space /> <reference ref="feed_guid" /> <item_separator /> <reference ref="short" /> <space /> <reference ref="note_gtfs" /> </chunk> <!-- Group --> <group name="GTFS" icon="presets/transport/bus.svg"> <item name="Stop - GTFS" icon="presets/transport/stop_position.svg" preset_name_label="true" type="node"> <link wiki="General_Transit_Feed_Specification" /> <key key="public_transport" value="stop_position" /> <space /> <combo key="railway" text="Railway" values="stop" /> <text key="local_ref" text="Local reference" /> <reference ref="stop_all" /> <space /> <preset_link preset_name="Stop Position" /> </item> <item name="Platform - GTFS" icon="presets/transport/platform.svg" preset_name_label="true" type="node,way,closedway,multipolygon"> <link wiki="General_Transit_Feed_Specification" /> <key key="public_transport" value="platform" /> <space /> <text key="local_ref" text="Local reference" /> <reference ref="stop_all" /> <space /> <preset_link preset_name="Platform" /> </item> <separator/> <item name="Stop Area - GTFS" icon="presets/misc/interpolation.svg" preset_name_label="true" type="relation"> <link wiki="General_Transit_Feed_Specification" /> <key key="public_transport" value="stop_area" /> <space /> <reference ref="stop_all" /> <space /> <preset_link preset_name="Stop Area" /> </item> <separator/> <!-- Stops --> <separator/> <item name="Route - GTFS" icon="presets/misc/route.svg" preset_name_label="true" type="relation"> <link wiki="General_Transit_Feed_Specification" /> <key key="type" value="route" /> <key key="public_transport:version" value="2" /> <reference ref="shape_id" /> <reference ref="feed_guid_name" /> <reference ref="cond" /> <reference ref="source_note" /> <space /> <preset_link preset_name="Public Transport Route (Bus)" /> <preset_link preset_name="Public Transport Route (Rail)" /> </item> <item name="Route Master - GTFS" icon="presets/misc/route.svg" preset_name_label="true" type="relation"> <link wiki="General_Transit_Feed_Specification" /> <key key="type" value="route_master" /> <reference ref="route_id" /> <space /> <reference ref="feed_guid_name" /> <reference ref="source_note" /> <reference ref="quality" /> <space /> <preset_link preset_name="Route Master" /> </item> <separator/> <item name="Route (PTv1) - GTFS" icon="presets/misc/route.svg" preset_name_label="true" type="relation"> <link wiki="General_Transit_Feed_Specification" /> <key key="type" value="route" /> <key key="public_transport:version" value="1" /> <reference ref="route_id" /> <space /> <reference ref="feed_guid_name" /> <reference ref="cond" /> <reference ref="source_note" /> <reference ref="quality" /> <space /> <preset_link preset_name="Public transport route (Legacy)" /> </item> </group> <!-- Routes --> </presets> }}}
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.