a-b-street/abstreet

Trying to load Camden data to test low traffic neighbourhoods

Closed this issue · 6 comments

Diagnostic

"panicked at called Option::unwarp() on a 'None
' value, map-Model/src/apply.rs.419.56

Thanks! I can reproduce by going to https://play.abstreet.org/0.3.47/ltn.html?system/gb/london/maps/camden.bin. I'll take a look as soon as I can

Hi Jean!

I've fixed the crash that you found, but it's not in a release or the web version yet.

The easiest way to get something cross-borough is to use the downloadable version and import the map yourself. Install from https://github.com/a-b-street/abstreet/releases, then do https://a-b-street.github.io/docs/user/new_city.html#the-easy-method. This GeoJSON boundary covers everything:

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"coordinates":[[[-0.16497358838319087,51.577700615376784],[-0.16497358838319087,51.548034858372404],[-0.12366324227289738,51.548034858372404],[-0.12366324227289738,51.577700615376784],[-0.16497358838319087,51.577700615376784]]],"type":"Polygon"}}]}

I had to stretch the boundary to cover the area you said, but it was straightforward:
Screenshot from 2023-09-29 17-25-23

I tried a few bus gates to stop the north/south shortcuts, but it's definitely a tricky area! Do you have a link to the plans being proposed?

Let me know if you have trouble importing locally, and I can see about adding a map covering that area. It's not the most scalable solution on my end though, to keep adding more and more unusual boundaries. But necessary until the web version can easily import custom areas too.

Hi Jean, sorry for the delay! Give https://play.abstreet.org/0.3.48/ltn.html?system/gb/london/maps/highgate.bin a try -- it's a newly imported map that covers everything here. You can adjust the boundary as needed, or if you have trouble, try this proposal that I started: https://play.abstreet.org/0.3.48/ltn.html?system/gb/london/maps/highgate.bin&--proposal=remote/cfe8dc4b619eb2b3123fd3699a8a7c79

I don't have lots of time to work on this tool right now, but I'll think through some other approaches where I can import a new map (a quick process for me) without having to release a new build (slower).

Closing the issue for now, but please reopen if something's not working, or if you'd like to share any results. Thanks!