Code Monkey home page Code Monkey logo

Comments (5)

dabreegster avatar dabreegster commented on May 5, 2024

Right now sidewalks and crosswalks can't be edited. One reason is that adding a sidewalk in reality is a pretty expensive construction project; the lane edits today could all be cheaply prototyped with paint and signs. Another reason is that removing sidewalks might disconnect bus stops and buildings. Right now pedestrians can only walk on sidewalks; if a road doesn't have any, there's not yet a way to model people walking along the shoulder.

Sometimes in OpenStreetMap, sidewalks are mapped separately from roads -- see the red footpaths at https://www.openstreetmap.org/#map=19/47.61885/-122.30161 for example. Right now I'm ignoring these and just generating sidewalks as special fixed lanes on the edges of roads. This happens at https://github.com/dabreegster/abstreet/blob/8a9ec06a4d6f5e2eb6e6da66a7b832bb24576f53/map_model/src/make/initial/lane_specs.rs#L130. Using OSM's footpaths has at least two problems: first, they're not consistently mapped everywhere in Seattle (so missing footpaths along a road could mean there's legitimately no sidewalks there, or just that they haven't been mapped yet). And second, since OSM doesn't model width of a road accurately, the placement of the sidewalks is likely to just overlap with the rest of the road in A/B Street.

Lots of this stuff seems pretty hard to me to fix. Is there any reason you wanted to edit sidewalks? Maybe there's a way to make some edits work.

from abstreet.

zarte13 avatar zarte13 commented on May 5, 2024

Yeah well I could transform a sidewalk into a driving lane or bus lane or bike lane but when I applied it I could not revert to a sidewalk...

from abstreet.

dabreegster avatar dabreegster commented on May 5, 2024

Wait really? That's a bug, that shouldn't be possible. Edit mode doesn't even let you select sidewalks. Can you take a video or describe exactly how you transformed a sidewalk?

from abstreet.

zarte13 avatar zarte13 commented on May 5, 2024

There I recorded a video that I put in a zip file.
Once you are in edit mode you can edit a sidewalk
2020-04-15 12-14-04.zip

from abstreet.

dabreegster avatar dabreegster commented on May 5, 2024

You're totally right, I forgot about disabling selection in the lane editor. Fixed. Thanks for reporting! I'll reopen this issue if I have any ideas for adding new sidewalks.

from abstreet.

Related Issues (20)

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.