Giter Club home page Giter Club logo

osm-sidewalker's Introduction

osm-sidewalker

A Tile Reduce processor for detecting potentially untagged sidewalks in OpenStreetMap

installation

npm install 

downloading osm qa tiles

OSM QA tiles are very large (38 GB compressed, 49 GB expanded). On OSX & Linux systems, you can run the build process by executing ./download.sh.

On Windows, or if you wish to download QA tiles yourself:

  • Create a data folder inside your copy of this repository
  • Download OSM QA tiles
  • Use gunzip or any other archiving tool that can expand .gz files to expand OSM QA tiles
  • Move the expanded latest.planet.mbtiles to the data folder

running

When executing the Tile Reduce task, you must provide a bounding box to select tiles. For example:

node index.js --area=[-77.12,38.79,-76.9,39] > output.json

publishing

The output of the Tile Reduce job is a line-separated list of sidewalk linestrings. This format works well with tippecanoe, for example:

tippecanoe -f -o sidewalks.mbtiles output.json

The resulting mbtiles can be uploaded as a Mapbox data source online, or via command line using mapbox-upload

osm-sidewalker's People

Contributors

tcql avatar tmcw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osm-sidewalker's Issues

Does it support finding sidewalks with cycleways?

What about cycleways and footways which are on sidewalks but are not footway tag. Is this detected?

For example S3 example here. Tag highway=cycleway, foot=yes next to the street is usually actually a sidewalk with cycleway and footway. But I'm not sure if adding footway=sidewalk is correct here. But making two ways out of it - one for cycleway and one for footway is also too much, since it would be hard to make both paths visible on a map since they are so close together.

Another way of tagging shared footway and cycleway is highway=path, foot=designated, bicycle=designated this is in JOSM presets.

add permalink

currently on https://www.mapbox.com/osm-sidewalker/ there is no possibility to link wanted location - there is no autoupdating url like on OSM main site, there is no method to generate permalink.

I am not interested in repeated panning to Europe from USA.

Score confidence

Using variation of distance from the nearby road, we could score a sidewalk on how likely we think it is to actually be a sidewalk.

If a sidewalk winds around near the road, it may be a foot trail that happens to be close to the road. This would help us flag lots of sidewalks in parks.

Open in JOSM not working for bounding box

@tcql

The map seems to be updated with the new data. Today while working on this we came across a issue where Open in JOSM pop-up was not appearing with respect to bounding box for downloading multiple footways.
It works fine when clicked on a single footway.

sidewalk11

We were working on this till yesterday and it was showing the pop-up to download in JOSM when clicked in vacant area.

Also JOSM link breaks when we accidentally rotate the map.

OSM-sidewalker map bug - Download in JOSM pop-up does not appear when the map is rotated (not north-up).

cc @planemad @maning

What comes out

The readme doesn't explain what comes out. Is it GeoJSON, or counts as numbers in an array or features or osm or something else?

cut down on false positives

There are currently a lot of false positives. Some are difficult to handle automatically, such as trails that run along a road but are definitely not acting as sidewalks.

Others would be more simple to handle, such as:

  • footways that explicitly have surface other than paved that indicates that it is unpaved
  • if there are two footways parallel to a road on the same time, the innermost may be a sidewalk, but the outermost is not

In Germany (and other areas), sidewalks are typically not drawn separately from road ways, but instead tagged on the road with sidewalk=left/right/both. This means that most candidate sidewalks in Germany are probably false positive, so once we have global runs up, we should work on reducing these errors

Figure out why tile selection is broken

osm-sidewalker/index.src.js

Lines 104 to 116 in 0940346

map.featuresIn(pxbbox, {layer: 'sidewalks-multiregion'}, function (err, features) {
if (err) return callback(err, null);
var selectedFeatures = features.filter(function(elem) {
return elem.layer.id === 'sidewalks-multiregion'
});
var wayIds = selectedFeatures.map(function (elem) {
return elem.properties._osm_way_id;
});
selectedWays = _.uniq(wayIds);
callback(null, selectedWays);
});

For some reason featuresIn is never returning hitting the callback ever. This prevents selecting all ways in a tile by clicking it from actually working

push daily stats

Once daily updates are ready, we should push daily stats to the website to show progress

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.