Skip to content

Instantly share code, notes, and snippets.

@Andygol
Last active February 15, 2017 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andygol/a2ff609bb4d71274245d51b1c253b832 to your computer and use it in GitHub Desktop.
Save Andygol/a2ff609bb4d71274245d51b1c253b832 to your computer and use it in GitHub Desktop.
How to split a bidirectional road to the road with separate ways in each direction

java openstreetmap editor 2017-02-14 14-12-52

This road have to be spitted on two ways for dual carriage way road.

We need to get installed Relation Toolbox plugin. It will help us to deal with relations.

Take a look on relation

java openstreetmap editor 2017-02-14 14-23-51

or

feb-14-2017 14-47-31

After we get familiar with all relations we may to start.

In this case all relations are route=road that is simplest situation.

Find place where need to split the road on two ways. Here is https://www.openstreetmap.org/#map=20/34.1066178213146/-117.42713700569719

java openstreetmap editor 2017-02-14 14-54-35

Split the road on two separate ways. Existing way we place for one direction and add oneway=yes tag, trace a new way for opposite direction; copy tags from existing way to the new way. Main purpose of copying tags is to transfer name, highway tags and accompanying to them information on to a new way. Further we will review and adjust tagging for each direction accordingly.

java openstreetmap editor 2017-02-14 15-11-05

Adding new way into existing relations:

  • select relation on the existing way in Relation Toolbox;
  • select new way and click to add it into selected relation;
  • repeat ☝️ this steps for all route relations from the list.

feb-14-2017 15-19-05

To check if the all ways are members of relation select relation in Relation Toolbox. It highlights selected relations and allows to see if there are missing segments.

feb-14-2017 15-33-01

Splitting on two ways is finished and you'll need to review and assign appropriate tags (lanes, turn:lanes and so on) on the segments of the roads.

If the relation did not have errors and omissions before making our changes it will remain valid after our edits.

But if you have a wish and time you may download whole relation and review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment