Coder Social home page Coder Social logo

osrm-profiles-contrib's Introduction

osrm-profiles-contrib

Community-driven routing profiles for osrm-backend.

Note: these are community-driven adaptions to the default profiles.

Overview

Profiles are versioned by OSRM major, then minor version.

.
├── 5
│   ├── 5
│   │   └── railway
│   │       └── railway.lua
│   └── 6
│       └── boat
│           └── boat.lua
├── LICENSE
└── README.md

Adding Profiles

  • Fork this repository
  • Add your profile to the versioned subdirectory
  • Make sure to add an explanation and (optional) your mail to the profile
  • Open a Pull Request for review

License

Copyright © 2016 Project OSRM Contributors

Distributed under the MIT License (MIT).

osrm-profiles-contrib's People

Contributors

daniel-j-h avatar frodrigo avatar meijirestored avatar morgoth avatar sidjy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osrm-profiles-contrib's Issues

Testing OSRM with modified profiles

Hi,

I need to test a solution proposed in the issue "#656" of osrm-backend module, titled "How can I avoid highways or tolls".
For this i need to:

  • modify car.lua profile after deleing toll_booth information,
  • re-extract osm graph and,
  • re-run the osrm-backend.

Is it possible to make two "opposite profiles" cohabit together with the same osrm-backend and if yes what is the safest way to do it ?
An example of two opposite profiles:

  • car.lua
  • carTollfree.lua (where toll_booth information has been deleted.

Thanks,

Error in truck-soft with speeds/maxspeed

Hello,

i tried generating a truck profile based on 5/21/truck-soft but road speeds don't change no matter what values i set the speed Sequence

I'm not a lua developer but it seems that WayHandlers.speed sets the speed accoring to the defined Sequence but after this the WayHandlers.maxspeed overwrites the values - e.g highway = motorway has definition of speed = 90 but on german highway without speedlimit after processing the calculated speeds are mostly in the range 110-120 (e.g. you can see this in debug map)

Is there an error in the profile ? (or do i need to change somethin else to change the speeds ?)

Thanks

support profiles with cucumber test files?

it would be nice if the contributed profiles could be supported by cucumber tests. maybe a profile could be contributed as a folder with the actual profile, and some .feature files?

Update truck-soft to 5.27.1

I would like to update truck-soft to the newest OSRM version 5.27.1.
Since the changes are not only in car.lua file but also in lib directory it makes it more difficult to apply changes from the 5.27.1 version.

@frodrigo Could you maybe give a hint how to do it in the best way?

Exclude ferry not working

Im running two OSRM instances, one with a car.lua and one with the newest truck-soft.lua (5.27). For the car profile exclude="ferry" works, but for the truck profile I still get back ferry routes.

Extraction aborts on unsanitized data

Running osrm-extract with the truck-soft profile and the associated scripts from the lib directory (v5.21), I stumbled over errors concerning unsanitized input data. Unfortunately the extract process aborted.

The first error was this one:
what(): lua: error: /opt/truck_soft.lua:353: attempt to compare string with number

I was able to cirumvent this by adding a call to the function tonumber().

The next one was this one:
what(): lua: error: /opt/lib/way_handlers.lua:483: attempt to compare string with number

Trying to apply the same fix by calling tonumber() led to this error message:
what(): lua: error: /opt/lib/way_handlers.lua:483: attempt to compare nil with number

Data seams to be involved, that cannot be converted to a number. So to make the conversion more robust, I decided to add a check: First try to convert the data to a number and only if this works (result is not nil) then use that converted data. By the way: I am using data provided by Geofabrik consisting of OpenStreetMap data for the sub region Europe and osrm-backend v5.24.0 from Docker Hub.

I will create a PR so someone can examine my workaround. Calling tonumber() twice within one statement may not be the smartest solution. But it works for me and I cannot observe any regression concerning the duration of the extract process.

Thanks and greetings,
rebos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.