Code Monkey home page Code Monkey logo

osm_fix_stop_signs's Introduction

This is a semi-automated tool to fix broken stop signs (highway=stop) and yield signs (highway=give_way) in OpenStreetMap.

To use:

  1. Run a query on https://overpass-turbo.eu/ in your desired area like this:
[out:xml][timeout:25];
// gather results
(
  // query part for: “highway=stop”
  node["highway"="stop"]["stop"!~".*"]["direction"!~".*"]({{bbox}});
  way(bn)["highway"];
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/
  1. Load into JOSM
  2. Select all and run this command: File > Download along...
  3. Save .osm file
  4. Run this script on the .osm file. Usage:
python fix_stop_signs.py <input.osm> <output.osm>
  1. Load the output file into JOSM
  2. Check the changes and upload

Don't process a huge file because it will take a long time to run.

osm_fix_stop_signs's People

Contributors

andrewpmk avatar

Watchers

 avatar  avatar

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.