Configurable Route Planning. Avoid left turns, areas and more

栏目: IT技术 · 发布时间: 5年前

#1

I invite you to try a planned feature for 1.0 which is now in a usable shape. It allows you to heavily customize the existing vehicle profiles without any Java knowledge. And not only per-request but also for the CH and LM preparations.

Cargo bike example:

base: bike

vehicle_height: 2.3
vehicle_width: 1.2

# let's assume cargo bikes are e-bikes and we should lower speed to prefer shorter and not faster routes automatically
max_speed:
  road_class:
    primary: 28

# if no other condition matches
max_speed_fallback: 25

priority:
  # exclude steps
  road_class:
    steps: 0

  surface:
    sand: 0.5
  # prefer better tracks
  track_type: { other: 1.1, grade1: 1.1 }
  # prefer official bike routes
  bike_network: { other: 0.5 }
  # avoid all situations where we have to get off the bike
  get_off_bike: 0.5

As you can see from the examples there are already several things implemented:

  • avoid, prefer or block roads with with a certain road_class (motorway, primary), surface, track_type, road_access (destination, …), road_environment (tunnel, bridge), toll, bike or hike network etc
  • define maximum vehicle properties like for speed, length, weight, height and width
  • lower the average speed via a speed_factor i.e. influence the time!
  • cap maximum speed (also influences the time!)
  • avoid, prefer or block areas via GeoJSON or also change speed or cap speed based on these areas.
  • avoid, prefer or block countries also works if issue 1875 is fixed (usage: add country encoded value and set border_directory)
  • change distance influence to prefer shorter but potentially slower routes

As there is no documentation except the PR itself and the tests I would appreciate your feedback about the usage and what is unclear or even your first custom profiles Configurable Route Planning. Avoid left turns, areas and more .

Previously discussedhere andhere.

#2

Have hacked together an interesting feature where we can avoiding certain turns like left_turns. Currently it still has some unexpected behaviour (for T-junctions) and is rather slow for longer routes, as the junction calculation stuff is done while the graph exploration, but it is really fun and interesting which routes are found:


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

B2B品牌管理

B2B品牌管理

(美)菲利普·科特勒、(德)弗沃德 / 楼尊 / 2008-1 / 35.00元

《B2B品牌管理》是第一本专门系统地阐述B2B品牌化的专业书籍,由营销大师菲利普•科特勒与弗沃德教授合作而成。他们以非凡的智慧和深厚的经验告诫B2B企业如何运用目标明确、重点突出的品牌化战略取得市场竞争优势地位,从而更加接近顾客,也更接近成功。在众多关于品牌的书籍中,《B2B品牌管理》的独特价值在于其根据实际环境探讨B2B品牌和品牌化问题,重点介绍和分析前沿的思想和最佳实践;通过与B2C企业的品牌......一起来看看 《B2B品牌管理》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码