Graphhopper flexible routing ignore street segment

萝らか妹 提交于 2019-12-12 03:02:18

问题


I've read alot about flexible queries but unfortunatelly I couldn't find something satisfying yet.

I want the routing algorithm to ignore a street segmet, because its flooded or broken. Is that possible (maybe by putting geopoints into the GHRequest)? If it is, what is the best practice for the implementation?


update: Do i need to create a custom Weighting and set the forbiddenEdges which i get out of OpenStreetMap.org?

Thanks for answers


回答1:


Yes, a custom Weighting is currently necessary where you feed GraphHopper edgeIDs (!= OSM IDs). Get these edgeIDs via LocationIndex.findClosest.

Please create an issue if you want to have this via web API.



来源:https://stackoverflow.com/questions/37134406/graphhopper-flexible-routing-ignore-street-segment

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!