Another approach could be to edit your OSM file.  You could identify the OSM 
nodes of the collapsed bridge (using openstreetmap.org) and remove them from 
the file.

From: Jason Dalton <jason.dal...@azimuth1.com>
Sent: Tuesday, October 29, 2019 6:54 AM
To: Mailing list to discuss Project OSRM <osrm-talk@openstreetmap.org>
Subject: Re: [OSRM-talk] Exclude bridge from OSRM calculation

Create a class in your OSM extract for the collapsed bridges.  Compile two 
different OSRM profiles - one that avoids class 'bridge-collapsed' and one that 
doesn't.


On Tue, Oct 29, 2019 at 7:27 AM ANDRES ABARCA 
<andres.aba...@iusspavia.it<mailto:andres.aba...@iusspavia.it>> wrote:
Hi Nikhil,

Thanks for the response! I was checking the car.lua and I will keep looking 
into it, but I think this would work for a generalized restriction. But I don't 
want to exclude all bridges, I want to exclude some specific ones (detected as 
collapsed).

Best regards,

Andres

Il giorno mar 29 ott 2019 alle ore 12:14 Nikhil VJ 
<nikhil...@gmail.com<mailto:nikhil...@gmail.com>> ha scritto:
Hi Andres,

Instead of trying to actually remove the bridge data, why not instruct (your 
own instance of) OSRM to avoid bridges when reading the OSM data?

Take a look at 
https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/foot.lua

I don't know right now about bridges, but I was able to enable pedestrian 
routing over trunk roads by tinkering around in this file and then building and 
running OSRM.

--
Cheers,
Nikhil VJ
https://nikhilvj.co.in


On Tue, Oct 29, 2019 at 4:03 PM ANDRES ABARCA 
<andres.aba...@iusspavia.it<mailto:andres.aba...@iusspavia.it>> wrote:
Thank you for your response!

I'm still inclining to use OSRM directly. Do you know if it would be possible 
to exclude bridges from the analysis if I use one of the Docker images?

Also, in general, how would I proceed about removing a bridge? Should I 
(temporarily) remove it from the road data? Or could I query it out?

Thanks for the help!!

Best regards,

Andres

Il giorno ven 25 ott 2019 alle ore 14:16 Steven M. Ottens 
<ste...@minst.net<mailto:ste...@minst.net>> ha scritto:

Hi Andres,

The public web service doesn't allow for exclusion of roads/bridges. If you 
setup your own copy of OSRM you obviously do have the freedom to exclude 
anything.

Alternatively you could look into Rural Accessibility Map. An application on 
top of OSRM developed for the Worldbank which is used to calculate the impact 
of road improvements on the accessibility of a region. You can use it to other 
way around as well: Calculate the impact of a bridge collapse.

http://rah.surge.sh/about+

https://github.com/WorldBank-Transport/ram-backend

Cheers

Steven
On 25-10-2019 12:31, ANDRES ABARCA wrote:
Hi! I'm a PhD student at IUSS Pavia doing research on the impact of bridge 
collapse.

I want to use the OSRM public web server to calculate a duration matrix using 
the Table Service. How can I exclude a specific bridge (or several) from the 
query?

We use OSM information, so we do have the OSM id numbers for the bridges we 
would be excluding.

Thanks for any assistance you can provide.

Best regards,

Andres Abarca
PhD Student
IUSS Pavia


_______________________________________________

OSRM-talk mailing list

OSRM-talk@openstreetmap.org<mailto:OSRM-talk@openstreetmap.org>

https://lists.openstreetmap.org/listinfo/osrm-talk
_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org<mailto:OSRM-talk@openstreetmap.org>
https://lists.openstreetmap.org/listinfo/osrm-talk
_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org<mailto:OSRM-talk@openstreetmap.org>
https://lists.openstreetmap.org/listinfo/osrm-talk
_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org<mailto:OSRM-talk@openstreetmap.org>
https://lists.openstreetmap.org/listinfo/osrm-talk
_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org<mailto:OSRM-talk@openstreetmap.org>
https://lists.openstreetmap.org/listinfo/osrm-talk


--
Jason Dalton
President, CEO
Azimuth1, LLC
703-618-8866
jason.dal...@azimuth1.com<mailto:jason.dal...@azimuth1.com>
www.azimuth1.com<http://www.azimuth1.com>
https://www.linkedin.com/in/jasondalton/
_______________________________________________
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to