Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#9586 closed enhancement (fixed)

Add route relations to presets

Reported by: simon04 Owned by: team
Priority: normal Milestone: 14.02
Component: Internal preset Version:
Keywords: low_hanging_fruit Cc:

Description

To improve the route mapping experience as well as the validator, I would like to add all known route relations from http://wiki.openstreetmap.org/wiki/Key:route to the internal presets.

As a start:

  • data/defaultpresets.xml

    diff --git a/data/defaultpresets.xml b/data/defaultpresets.xml
    index 32ab0ad..db5dbeb 100755
    a b Note that for a match, at least one positive and no negative is required.  
    71177117                <role key="backward_stop" text="backward halt point" requisite="optional" type="node" />
    71187118            </roles>
    71197119        </item>
     7120        <group name="Routes">
     7121            <item name="MTB route" icon="presets/path.png" type="relation">
     7122                <link href="http://wiki.openstreetmap.org/wiki/Mountain_biking" />
     7123                <label text="Edit MTB route" />
     7124                <space />
     7125                <key key="type" value="route" />
     7126                <key key="route" value="mtb" />
     7127                <reference ref="name_ref" />
     7128                <optional>
     7129                    <text key="distance" text="Distance (km)" />
     7130                    <text key="ascent" text="Ascent (m)" />
     7131                    <text key="descent" text="Descent (m)" />
     7132                    <check key="roundtrip" text="Roundtrip" />
     7133                    <text key="symbol" text="Symbol description" />
     7134                    <text key="description" text="Description" />
     7135                </optional>
     7136                <roles>
     7137                    <role key="" text="route segment" requisite="required" type="way" />
     7138                </roles>
     7139            </item>
     7140        </group> <!-- Routes -->
    71207141        <item name="Route Network" icon="presets/path.png" type="relation">
    71217142            <link href="http://wiki.openstreetmap.org/wiki/Relations/Proposed/Network" />
    71227143            <label text="Edit Route Network" />

To avoid many untranslated strings, let's wait for the 14.02 release …

As always, nice patches are welcome :-)

Attachments (0)

Change History (7)

comment:1 by simon04, 10 years ago

In 6810/josm:

see #9586 - Add non-public-transport route relations to presets

comment:2 by simon04, 10 years ago

In 6811/josm:

see #9586 - Improve wording for non-public-transport route relations

comment:3 by simon04, 10 years ago

In 6817/josm:

see #9586 - Add missing labels for non-public-transport route relations

... and make i18n pot target work again

comment:4 by simon04, 10 years ago

In 6818/josm:

see #9586 - fix typo

comment:5 by Don-vip, 10 years ago

see also #9725

comment:6 by simon04, 10 years ago

Resolution: fixed
Status: newclosed

comment:7 by akks, 10 years ago

In 6963/josm:

see #9586 :add widely used network and distance to route=road preset

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.