wiki:Presets/PhilippinesJeepneys

Version 1 (modified by Hike&Map, 4 years ago) ( diff )

I created this Preset for myself - but others might find it useful too.. who knows - anyway - I'll update this page in the next few so please feel free to contribute/improve but AFTER I'm done myself with the wiki LOL

<?xml version="1.0" encoding="UTF-8"?>
<presets
        xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"
        author="Hike&amp;Map"
        version="1.15_2023-02-13"
        description="Philippines Jeepney Presets for conveniently adding all Objects part of Jeepney Routes"
        shortdescription="Philippines Jeepney Preset"
        link="https://josm.openstreetmap.de/wiki/Presets/PhilippinesJeepney">
<!-- Chunks are being used in the actual items -->
        <chunk id="separator_line">
                <space />
                <label text="-------------------------------------------------------------------------------------------------          -------------------------------------------------------------------------------------------------" />
                <space />
        </chunk>
        <chunk id="description">
                <text key="description" text="Description (Leave empty if nothing of importance)" default="" use_last_as_default="false" />
        </chunk>
        <chunk id="network">
                <text key="network" text="Network (i.e. 'PH:CAR:Baguio')" default="" use_last_as_default="false"/>
        </chunk>
        <chunk id="name" >
                <text key="name" text="Name (i.e. 'Quezon Hill PUJ Terminal' for an initial stop)*" requisite="required" default="" use_last_as_default="false" />
                <label text="* Use the accurate name of the stops. If no name exists, you may consider giving them reasonable names of nearby Sitio/Neighbourhood/POI/Turning Point to assist user's navigation" />
                <space />
        </chunk>
        <chunk id="name_stop_area" >
                <text key="name" text="Name (i.e. 'Kayang Street Terminal Area' near the public market Baguio City)*" requisite="required" default="" use_last_as_default="false" />
                <label text="* Use the name how it's being addressed either officially by the government or the locals or both using the 'alt_name' key" />
                <space />
        </chunk>
        <chunk id="no_stop_area">
                <space />
                <label text="-------------------------------------------------------------------------------------------------     The following only if no 'stop area' exists:     -------------------------------------------------------------------------------------------------" />
                <space />
        </chunk>
        <chunk id="not_mapped_separately">
                <space />
                <label text="-------------------------------------------------------------------------------------     The following only if the amenities are not mapped seperately:     -------------------------------------------------------------------------------------" />
                <space />
        </chunk>
        <chunk id="no_master">
                <space />
                <space />
                <label text="--------------------------------------------------------------------------------------------     Below is only recommended if no 'Route Master' exists:     --------------------------------------------------------------------------------------------" />
                <space />
        </chunk>
        <chunk id="surface">
                <combo key="surface" text="Surface" values="paved,unpaved,asphalt,concrete,concrete:plates,concrete:lanes,paving_stones,sett,cobblestone,grass_paver,compacted,fine_gravel,gravel,pebblestone,ground,mud,sand,grass,wood,metal" />
        </chunk>
        <chunk id="colour">
        <!-- colours according to https://www.w3schools.com/colors/colors_names.asp -->
                <combo key="colour" text="Colour (HTML name or hexadecimal code)" values="#000000,#0000FF,#000080,#A52A2A,#808080,#008000,#FFA500,#800080,#FF0000,#ffC0CB,#C0C0C0,#FFFFFF,#FFFF00,#D2B48C,#CD853F" display_values="Black,Blue,Navy,Brown,Gray,Green,Orange1,Purple,Red,Pink,Silver,White,Yellow,Tan,Tan3" editable="true" />
        </chunk>
        <chunk id="oh">
                <combo key="opening_hours" text="Operating Hours (Where applicable also set in 'route')" delimiter="|" values="24/7|08:30-12:30,15:30-20:00|Sa-Su 00:00-24:00|Mo-Su 09:00-21:00|Mo-Sa 08:00-18:00|Mo-Fr 09:00-17:00|Mo-Fr 08:30-20:00; Sa,Su 08:00-15:00; PH off|Mo-Fr 08:30-20:00; Tu-Su 08:00-15:00; Sa 08:00-12:00|Mo-Su 08:00-18:00; Apr 10-15 off; Jun 08:00-14:00; Aug off; Dec 25 off|sunrise-sunset|Su 10:00+|week 01-53/2 Fr 09:00-12:00; week 02-52/2 We 09:00-12:00" values_no_i18n="true" values_sort="false" />
        </chunk>
        <chunk id="public_transport_route_mandatories">
                <space />
                <label text="Mandatory Attributes:" />
                <space />
                <text key="name" text="Name (i.e. 'Jeepney: Baguio → Itogon' or 'Jeepney: Itogon → Baguio')" default="Jeepney: 'from' → 'to'" requisite="required" use_last_as_default="false"/>
                <text key="from" text="From (initial stop, the actual 'name' of the stop)" default="" requisite="required" use_last_as_default="false"/>
                <text key="to" text="To (terminal stop, the actual 'name' of the stop)" default="" requisite="required" use_last_as_default="false"/>
        </chunk>
        <chunk id="public_transport_route_optionals">
                <text key="via" text="Via (intermediate areas/barangay/sitio/etc.)" />
                <space />
                <check key="fee" text="Fee" default="true"/>
                <text key="charge" text="Charge (i.e. '18 PHP')" default="" use_last_as_default="false"/>
                <text key="duration" text="Duration (Possible: HH:MM:SS, H:MM:SS, HH:MM, H:MM, MM, M)" default="" use_last_as_default="false"/>
                <text key="operator" text="Operator" />
                <reference ref="network" />
                <reference ref="description" />
                <text key="fixme" text="Fixme (Anything that needs to be added)" default="" use_last_as_default="false"/>
                <space />
                <reference ref="no_master" />
                <reference ref="colour" />
                <reference ref="oh" />
                <text key="ref" text="Reference (This is what renderers show as name of the line)" default="" use_last_as_default="false"/>
        </chunk>        
<!-- End of Chunks-->
        <group name="Transport" icon="presets/transport/railway/rail.svg">
                <group name="Jeepney" icon="Phillipines_Jeepney\Philippines_JeepneyFront64.png">                                        
                        <!-- Jeepney Stop, exact point on the highway -->
                        <item name="Stop Position" icon="Phillipines_Jeepney\Philippines_JeepneyStop64.png" type="node">
                                <link wiki="Tag:public_transport=stop_position" />
                                <link wiki="Tag:highway=bus_stop" />
                                <label text="Jeepney stop position (node) on the road" />
                                <space />
                                <key key="bus" value="yes" />
                                <key key="highway" value="bus_stop" /> 
                                <key key="public_transport" value="stop_position"/>
                                <reference ref="name" />
                                <reference ref="no_stop_area" />
                                <reference ref="network" />
                        </item>                 
                        <separator />                   
                        <!-- Jeepney Platforms -->
                        <item name="Platform" icon="presets/transport/platform.svg" type="node,way,closedway,multipolygon">
                                <link wiki="Tag:public_transport=platform" />
                                <label text="Node/Way/Area where people are actually waiting for the jeep." />
                                <space />
                                <key key="public_transport" value="platform"/>
                                <reference ref="name" />
                                <optional>
                                        <check key="covered" text="Covered" default=""/>
                                        <check key="tactile_paving" text="Tactile Paving" default=""/>
                                        <reference ref="surface" />
                                        <space />
                                        <reference ref="no_stop_area" />
                                        <reference ref="network" />
                                        <space />
                                        <reference ref="not_mapped_separately" />
                                        <check key="bench" text="Bench" default=""/>
                                        <check key="shelter" text="Shelter" default=""/>
                                        <reference ref="description" />
                                </optional>
                        </item>                 
                        <separator />                   
                        <!-- Jeepney Waiting Shelter -->
                        <item name="Waiting Shelter" icon="Phillipines_Jeepney\shelter.svg" type="node,closedway,multipolygon">
                                <link href="https://wiki.openstreetmap.org/wiki/Tag:amenity=shelter" />
                                <label text="Jeepney Waiting Shelter" />
                                <space />
                                <key key="amenity" value="shelter"/>
                                <key key="shelter_type" value="public_transport" />
                                <check key="bench" text="Bench" />
                                <check key="bin" text="Bin" />
                                <reference ref="surface" />
                                <combo key="building" text="Building" default="roof" values="roof,cabin,kiosk,transportation,shed,hut,yes" editable="true" />
                                <reference ref="description" />
                        </item>                 
                        <!-- Jeepney Waiting Bench -->
                        <item name="Waiting Bench" icon="Phillipines_Jeepney\backrest_yes.svg" type="node,way">
                                <link href="https://wiki.openstreetmap.org/wiki/Tag:amenity=bench" />
                                <label text="Jeepney Waiting Bench" />
                                <space />
                                <key key="amenity" value="bench"/>
                                <check key="backrest" text="Backrest" default=""/>
                                <text key="seats" text="Number of seats" default=""/>
                                <reference ref="surface" />
                                <combo key="material" text="Material" default="" values="wood,steel,stone,concrete,metal,rock" editable="true" />
                                <reference ref="description" />
                        </item>                 
                        <!-- Jeepney Information Board -->
                        <item name="Information Board" icon="Phillipines_Jeepney\board_14.svg" type="node,way">
                                <link wiki="Tag:information=board" />
                                <link wiki="Key:board_type" />
                                <label text="Information Board" />
                                <space />
                                <key key="tourism" value="information" />
                                <key key="information" value="board"/>
                                <key key="board_type" value="public_transport" />
                                <text key="board:title" text="Board Title (Headline or title)" />
                                <text key="operator" text="Operator" />
                                <reference ref="network" />
                                <reference ref="description" />
                        </item>                 
                        <separator  />                  
                        <!-- Jeepney Stop Area basically includes everything in all directions that belongs to a specific stop -->
                        <item name="Stop Area" icon="Phillipines_Jeepney\stop_area.svg" type="relation">
                                <link href="https://wiki.openstreetmap.org/wiki/Tag:public_transport=stop_area" />
                                <space />
                                <key key="public_transport" value="stop_area"/>
                                <key key="type" value="public_transport" />
                                <reference ref="name_stop_area" />
                                <text key="operator" text="Operator" />
                                <reference ref="network" />
                                <roles>
                                        <role key="stop" text="stop position" requisite="optional" type="node" member_expression="public_transport=stop_position (bus=yes OR share_taxi=yes OR trolleybus=yes)" />
                                        <role key="stop_exit_only" text="stop position (exit only)" requisite="optional" type="node" member_expression="public_transport=stop_position (bus=yes OR share_taxi=yes OR trolleybus=yes)" />
                                        <role key="stop_entry_only" text="stop position (entry only)" requisite="optional" type="node" member_expression="public_transport=stop_position (bus=yes OR share_taxi=yes OR trolleybus=yes)" />
                                        <role key="platform" text="platform" requisite="optional" type="node,way,closedway,multipolygon" member_expression="public_transport=platform" />
                                        <role key="platform_exit_only" text="platform (exit only)" requisite="optional" type="node,way,closedway,multipolygon" member_expression="public_transport=platform" />
                                        <role key="platform_entry_only" text="platform (entry only)" requisite="optional" type="node,way,closedway,multipolygon" member_expression="public_transport=platform" />
                                        <role key="" text="shelter" requisite="optional" type="node,closedway,multipolygon" member_expression="amenity=shelter" />
                                        <role key="" text="parking" requisite="optional" type="node,closedway,multipolygon" member_expression="amenity=parking" />
                                        <role key="" text="taxi" requisite="optional" type="node,closedway,multipolygon" member_expression="amenity=taxi" />
                                        <role key="" text="tricycle station" requisite="optional" type="node,closedway,multipolygon" member_expression="amenity=taxi" />
                                        <role key="" text="bench" requisite="optional" type="node,way" member_expression="amenity=bench" />
                                        <role key="" text="information board" requisite="optional" type="node" member_expression="information=board" />
                                        <role key="" text="traffic sign" requisite="optional" type="node,way,closedway,multipolygon" member_expression="traffic_sign" />                                        
                                </roles>
                        </item>                 
                        <!-- Jeepney Route -->
                        <item name="Route" icon="presets/misc/route.svg" type="relation" preset_name_label="true">
                                <link wiki="Public_transport#Service_routes" />
                                <link wiki="Tag:route=bus" />
                                <link wiki="Relation:route" />
                                <label text="Before adding the actual route(s), it is recommended that you have at least the initial and final stop mapped, preferably all stops." />
                                <space />
                                <key key="type" value="route" />
                                <key key="route" value="bus" />
                                <key key="bus" value="share_taxi" />
                                <key key="public_transport:version" value="2" />
                                <reference ref="public_transport_route_mandatories" />
                                <space />
                                <optional>
                                        <reference ref="public_transport_route_optionals" />
                                </optional>
                                <roles>
                                        <role key="stop" text="stop position" requisite="optional" type="node" member_expression="public_transport=stop_position (bus=yes OR share_taxi=yes OR trolleybus=yes)" />
                                        <role key="stop_exit_only" text="stop position (exit only)" requisite="optional" type="node" member_expression="public_transport=stop_position (bus=yes OR share_taxi=yes OR trolleybus=yes)" />
                                        <role key="stop_entry_only" text="stop position (entry only)" requisite="optional" type="node" member_expression="public_transport=stop_position (bus=yes OR share_taxi=yes OR trolleybus=yes)" />
                                        <role key="platform" text="platform" requisite="optional" type="node,way,closedway,multipolygon" member_expression="public_transport=platform" />
                                        <role key="platform_exit_only" text="platform (exit only)" requisite="optional" type="node,way,closedway,multipolygon" member_expression="public_transport=platform" />
                                        <role key="platform_entry_only" text="platform (entry only)" requisite="optional" type="node,way,closedway,multipolygon" member_expression="public_transport=platform" />
                                        <role key="" text="route segment" requisite="required" type="way,closedway" member_expression="highway" />
                                        <role key="hail_and_ride" text="hail and ride route segment" requisite="optional" type="way,closedway" member_expression="highway" />
                                </roles>
                        </item>
                        <!-- Jeepney Route Master-->                    
                        <item name="Route Master" icon="presets/misc/route.svg" type="relation" preset_name_label="true">                               
                                <link wiki="Relation:route_master" />
                                <label text="Before adding the master route, it is recommended that you do the routes first" />
                                <space />
                                <key key="type" value="route_master" />
                                <key key="route_master" value="bus" />
                                <key key="bus" value="share_taxi" />
                                <key key="public_transport:version" value="2" />
                                <text key="name" text="Name (i.e. 'Jeepney: Baguio → Itogon' - one-way only)" requisite="required" default="Jeepney: 'from' → 'to'" use_last_as_default="false"/>                               
                                <text key="ref" text="Reference (This is what renderers show as name of the line)" requisite="required" default="" use_last_as_default="false"/>
                                <optional>
                                        <text key="operator" text="Operator" value="" use_last_as_default="true"/>
                                        <text key="network" text="Network" value="" use_last_as_default="true"/>
                                        <reference ref="colour" />
                                        <reference ref="oh" />
                                        <check key="school" text="School" disable_off="true" />
                                        <reference ref="description" />
                                </optional>
                                <roles>
                                        <role key="" text="route variant/direction (at least 2)" requisite="required" type="relation" member_expression="type=route" />
                                </roles>
                        </item>
                </group>
        </group>
</presets>

Presets_PhilippinesJeepneys-preset.xml, Presets_PhilippinesJeepneys.zip

Attachments (7)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.