Skip to content

Instantly share code, notes, and snippets.

@jinalfoflia
Forked from aarthykc/workflow.md
Last active February 17, 2016 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jinalfoflia/88b2c3d0a49c54c4316d to your computer and use it in GitHub Desktop.
Save jinalfoflia/88b2c3d0a49c54c4316d to your computer and use it in GitHub Desktop.
Proposed Workflow
STEP 1: Setting up JOSM for mapping traffic data

In order to be able to map traffic data easily, there are some plugins that JOSM needs to be configured with:

  • Layers to be added:

    • Mapillary layer: tms:http://d2cd86j8eqns9s.cloudfront.net/tiles/{zoom}/{x}/{y}.png
    • Bing imagery: bing[22]:http://www.bing.com/maps/
  • Plugins to be downloaded:

mapi_plugins

  • Map-paint styles to be added:
    • traffic_signs: It displays all the existing traffic signs that have been already mapped on OSM.
    • Maxspeed: It displays the already existing speed restrictions on OSM.

mapi_paint

STEP 2: How to use the mapillary and turn restriction plugins

Using the Mapillary plugin

  • The Mapillary imagery can be added by clicking on imagery -> Mapillary in JOSM. This will add the mapillary layer over the dataset layer.

  • The explanation for how the plugin works can be found here.

    Note:

    • If one is using tasking manager, first download the task from the tasking manager and then add the Mapillary layer.
  • Every time a new task is downloaded from the tasking manager, a new Mapillary layer must be added after deleting the old one.

Using the turn restriction plugin

  • The explanation for how the turn restriction plugin works can be found here.
STEP 3: How to add the traffic data using mapillary
  • Probe the different Mapillary images present in that area to find useful traffic data that can be added to the Open Street Map.

  • The Mapillary point on the GPX trail that has a red triangle along with it contain Traffic-signs. screen shot 2015-11-27 at 1 41 55 pm

  • Probe the images to get a good idea of the surroundings and then compare them with the existing imagery to find the exact location of the traffic-sign.

    turn_res

  • We need to cautious while adding a U-turn in OSM, here is how we can add it:

mapillary2

Note

  • To get a better idea about the area/road, always inspect multiple images.
  • With the help of the plugins, look for one-ways, speed-limits and traffic restrictions which are already present on the road/area.
  • Unless you are sure about the start and end point of a road, it is advisable to avoid adding oneway=yes tag to it.
  • We should avoid adding turn restriction to roads that are leading to oneways going in the opposite direction, like the example below. It will only result in redundant data:

screen_shot_2015-11-30_at_11_36_26_pm Here we should avoid adding turn-restriction as it will result in redundant data

TRAFFIC SIGNAL GUIDE:

Refer to the table given below to match the traffic sign in the mapillary image against the list of traffic signs and it also consists of the OSM tags:

The last two columns of the table enlists the correct tagging convention for adding the traffic data to OpenStreetMap.

Symbol Description OSM Tag Node/Way/Relation
Speed limit traffic_sign=maxspeed; maxspeed=* Node/Way
Minimum speed limit minspeed=* Node/Way
No straight through restriction=no_straight_on Relation
No Right Turn restriction=no_right_turn Relation
No Left Turn restriction=no_right_turn Relation
No Turns restriction=only_straight_on Relation
No U-turn restriction=no_u_turn Relation
No Left or U-turn restriction=no_right_turn; restriction=no_u_turn Relation
Bike lane cycleway=lane; bicycle=yes Way
No motorized vehicles motorcar=no/motor_vehicle=no Way
One Way oneway=yes Way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment