Giter Club home page Giter Club logo

sidewalks's Introduction

JOSM Sidewalks

Installation

JOSM Preferences → Pluginssidewalks

Usage

Automatic crossing ways

Enter the mode via ModeSidewalk Mode.

Once in the mode, you can start mapping sidewalks. It works in a similar manner to the Draw mode with some special actions for sidewalks. Of specific note:

  • When adding nodes to a way with highway=footway, if the footway crosses a road and is sufficiently short, a crossing way will be created. It is recommended to put a node where the sidewalk stops and starts on either side of the road.

Synchronizing keys between crossing ways and nodes

When adding tags to a crossing way or node, common crossing tags will be copied from the edited way or node to the attached node or way. Current keys that are synchronized:

  • bicycle
  • crossing
  • crossing:continuous
  • crossing:markings
  • crossing:signals
  • crossing_ref
  • cycleway
  • flashing_lights
  • horse
  • traffic_signals:sound
  • traffic_signals:vibration

Parallel way creation

DataCreate parallel sidewalks

This just creates parallel ways to a highway. It is recommended to check the geometry of the highway before using this tool.

Useful overpass queries

Count and length of sidewalks touched by a user after a set date in an area

// Count and length of all sidewalks touched in Mesa County by vorpalblade after April 1 2024
[out:json][timeout:25];
{{geocodeArea:"Mesa County, Colorado, United States"}}->.searchArea;
way["highway"="footway"](newer:"2024-04-01T00:00:00Z")(user_touched:vorpalblade)(area.searchArea);
make stat number=count(ways),length=sum(length());
out;

Explanation:

  • [out:json][timeout:25]: Set the output to json, timeout after 25 seconds
  • {{geocodeArea:"Mesa County, Colorado, United States"}}->.searchArea;: Set the search area to Mesa County, Colorado
  • way["highway"="footway"]: Find footways
    • (newer:"2024-04-01T00:00:00Z"): Filter footways that were touched after April 01, 2024
    • (user_touched:vorpalblade): Filter footways that were touched by the user vorpalblade
    • (area.searchArea): Filter footways to only be inside the search area
  • make stat number=count(ways),length=sum(length());: Output a count of the ways (count(ways)) and the sum of the length of those ways (sum(length()))
  • out: Output the json

Sample Query (you'll have to hit show data)

Advanced preferences

Preference Default value Description
sidewalk.crossing.kerb.tags [{}] Any additional tags to add to the kerb node
sidewalk.crossing.kerb true If true, add kerb tags to crossing nodes connected to sidewalks
sidewalk.crossing.maxlength 30 The maximum length for a crossing way
sidewalk.crossing.node.maxdistance 6 Attempt to merge nodes with crossing tags at most this distance (m) away when creating crossing nodes
sidewalk.crossing.node.dupedistance 1 Attempt to merge nodes at most this distance (m) away when creating crossing nodes
sidewalk.crossing.sync true If true, synchronize tags between the crossing way and the crossing node

License

GPLv2 or any later version

sidewalks's People

Contributors

bastik avatar don-vip avatar dr-m avatar gubaer avatar harry-wood avatar simon04 avatar stoecker avatar tsmock avatar upliner avatar

Stargazers

 avatar

Watchers

 avatar  avatar

sidewalks's Issues

Not adding crossing nodes in all cases

I had an area where the sidewalks were already in place but the crossing did not exist. I entered sidewalk mode and clicked the nodes in order 1,2,3,4. I has missed making crossing nodes for the north/south roadway.

image

surface tagging continuing past kerb

Here's another place I have to keep doing little corrections for. The roadway has surface=asphalt but the footways don't. Clicking 1,2,3,4 as depicted ends up with 2 segments. The short stub on the bottom that is footway=sidewalk with no surface tagging and the upper portion that is footway=crossing, surface=asphalt the whole way.

I can split these up and get it patched but perhaps it can be a bit smarter about continuing the crossing after correctly placing the kerb.

image

Crossing ways getting attached to inner roundabout

It's very common here in Seattle for a small junction to have a mini roundabout drawn into it. This causes the plugin to find a nearest node for the crossing that happens to be on the roundabout. These are all tagged as highway=roundabout so maybe don't attach to them? Maybe it should be? Dunno.

image

Coordinate surface tagging on roadway and crossing

My current work pattern is to add surface tagging and fix alignment of roads, then work on sidewalks. Occasionally I will miss a roadway surface tag and it (obviously) won't get picked up on the crossing node. Maybe it's better as a validator step but it could be nice to have surface tags from roadways proactively applied to crossings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.