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

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.