brouter-web: Load No-go areas does nothing on Chrome/Safari

Hey folks!

I’m trying to use the website to help me plan my journeys on my new Voi Scooter.

The conditions for where you can ride are:

  • Cycle Lanes
  • And/Or 30mp/h>= roads
  • And not within Voi’s No-Ride zones

I managed to get hold of the No-Ride zones and converted them into a GeoJSON (link by @bagage). I can view that in QGIS:

image

However whenever I try to Load that as a No-go area in brouter, the dialog does nothing when I click Load (I’ve recorded my screen as a gif):

ezgif com-gif-maker

This is the same behaviour I also see in Safari

I would love to use the site for route planning as brouter seems like one of the only tools that handles all 3 conditions 🛴

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 1
  • Comments: 18 (6 by maintainers)

Commits related to this issue

Most upvoted comments

To bypass the URL length limitation of brouter-web (and brouter as well I believe), one solution could be to use a link in the URL, for instance nogo-url=https://gist.githubusercontent.com/bagage/ce5a938c3eee586a7ab9b448116017e0/raw/f8fa33d554c31f4bbdd68b29e872b2ddb4990ee9/No_Ride_Zone.geojson and then:

  1. either make BRouter parse that link as well and handling it server way
  2. fetch the file in BRouter-web, and submit it to BRouter via POST data instead.

The first solution wouln’t allow to display the nogo areas on the map so I think 2 would be better. Thoughts @nrenner?

Hey @bagage I don’t on the machine I’m on atm, but https://www.google.co.uk/maps/d/viewer?mid=1Y1uS6t1HyPK8_SoKzMMhXP_F_aBln8RX&ll=51.49351441751865%2C-2.835247920745161&z=10 is the link that Voi sent me with the long term rental area & no-go zones. You can download the No Ride Zone by clicking on the ellipsis on the left hand side and download the KML. I used QGIS to convert that to a GeoJSON 😄

BTW I pushed a fix on master to properly handle geojson load via URL example url, it should work now on brouter.damsy.net and on brouter.de on next deployment too!