Re: [OSRM-talk] points order

2018-08-06 Thread Daniel Hofmann
Check out https://github.com/mapbox/node-or-tools#node-or-tools The pickup and delivery feature makes sure - the delivery location is served by the same car serving the pickup location - the delivery location is served after the pickup location For example for (pickup, delivery)-pairs (4, 12),

Re: [OSRM-talk] Does osrm-routing deal only with ordered points

2018-03-14 Thread Daniel Hofmann
Also check out https://github.com/mapbox/node-or-tools#node-or-tools which you can use on top of the routing engine's distance matrix output. The repository contains an example how to do this with further optimization constraints. Hope that helps, Daniel J H On Tue, Mar 13, 2018 at 11:59

Re: [OSRM-talk] OSRM suggests alternative route a few times

2018-01-23 Thread Daniel Hofmann
There's an alternatives=n option you can use to request up to n alternatives (if available). Here are the constants for pruning alternative candidate paths:

Re: [OSRM-talk] [OSRM 5.11+ ] car.lua oneway=reversible

2017-12-13 Thread Daniel Hofmann
Yes, remove / comment out the reversible entry from the avoid set here: https://github.com/Project-OSRM/osrm-backend/blob/9a8ed30e953cd629aeb947a4bc72dfafc8cd55f9/profiles/car.lua#L116 then the way handler will not discard reversible oneways here:

Re: [OSRM-talk] Feed OSRM with Postgis

2017-11-30 Thread Daniel Hofmann
; All the best > > *François Lacombe* > > fl dot infosreseaux At gmail dot com > www.infos-reseaux.com > @InfosReseaux <http://www.twitter.com/InfosReseaux> > > 2017-11-29 16:35 GMT+01:00 Daniel Hofmann <hofm...@mapbox.com>: > >> Yes, if all your data comes

Re: [OSRM-talk] Feed OSRM with Postgis

2017-11-29 Thread Daniel Hofmann
Yes, if all your data comes from a database the best way to get it into OSRM is to map your data to the OpenStreetMap tagging schema. You can either create an .osm.xml or even an .osm.pbf if you need the compression and compactness; you can use e.g. libosmium to write both formats. Good luck,

Re: [OSRM-talk] Injection of new Streets data

2017-11-29 Thread Daniel Hofmann
You should map the streets in OpenStreetMap directly https://www.openstreetmap.org/#map=8/33.374/36.642 zoom in, click the edit button. Then trace streets and add tags. Best, Daniel J H On Wed, Nov 29, 2017 at 7:51 AM, Mazen Mrad wrote: > Greetings; > > I have a new village

Re: [OSRM-talk] ferry routing problem

2017-11-01 Thread Daniel Hofmann
A couple of things I'm seeing here: The ferry does not have a duration tag so you will get default speeds; you could add duration data to http://www.openstreetmap.org/way/81817423#map=17/46.69224/7.90466=D The default profiles set speed for ferries but they do not (yet) modify weights for

Re: [OSRM-talk] Routingerror with motorcar destination

2017-10-21 Thread Daniel Hofmann
If you look at the debug map http://map.project-osrm.org/debug/#15.14/51.7445/7.4713 you will see the road is not in the routing graph. The unclassified highway tag should be fine, I guess it's related to the access tags. Could you open a ticket in

Re: [OSRM-talk] Compiler warnings policy

2017-09-11 Thread Daniel Hofmann
, Sep 11, 2017 at 1:25 PM, Mateusz Loskot <mate...@loskot.net> wrote: > On 11 September 2017 at 12:34, Daniel Hofmann <hofm...@mapbox.com> wrote: > > This Wiki page is a bit outdated; for example there are a few compiler > > warnings on old compilers in combination w

Re: [OSRM-talk] Compiler warnings policy

2017-09-11 Thread Daniel Hofmann
This Wiki page is a bit outdated; for example there are a few compiler warnings on old compilers in combination with specific boost versions. That said we should check warnings for Travis (and the Windows CI ..) and especially our production builds. I think a "coding standard" boils down to: -

Re: [OSRM-talk] itinerary export

2017-08-28 Thread Daniel Hofmann
Hey Marc, such a button does not exist; there's a ticket over here: https://github.com/Project-OSRM/osrm-frontend/issues/190 all the data is there - what's missing is the last conversion step to the format you want it to be in. You can make a HTTP request against the demo server routing engine

Re: [OSRM-talk] OSRM v5.10.0

2017-08-07 Thread Daniel Hofmann
le with previous release? (or should > I rebuild the files before deployment) > > or could you please indicate this with all the releases? > > thanks > > michal > > > On Mon, Aug 07, 2017 at 05:05:32PM +0200, Daniel Hofmann wrote: > > The v5.10 release comes wit

[OSRM-talk] OSRM v5.10.0

2017-08-07 Thread Daniel Hofmann
The v5.10 release comes with a major feature: via-way turn restrictions. These turn restrictions occur in OpenStreetMap in the form of a restriction relation : (fromWayId, viaWayId, toWayId) and prevent multiple specific turns depending on

Re: [OSRM-talk] License Query

2017-07-21 Thread Daniel Hofmann
No uptime guarantees, non-commercial only: https://github.com/Project-OSRM/osrm-backend/wiki/Api-usage-policy You may want to look into services such as, but not limited to, Mapbox: https://www.mapbox.com/directions/ https://www.mapbox.com/drive/ Disclaimer: the core osrm devs are with Mapbox.

Re: [OSRM-talk] Current server requirements for planet

2017-07-05 Thread Daniel Hofmann
For the record: because we're seeing this question pop up every now and again I just added a disk and memory requirements page to our wiki: https://github.com/Project-OSRM/osrm-backend/wiki feel free to adapt and / or add your own findings. Cheers, Daniel J H On Wed, Jul 5, 2017 at 8:30 PM,

Re: [OSRM-talk] Example of restricted access flags for way_function and turn_function

2017-07-01 Thread Daniel Hofmann
You are correct, the way function can set a "restricted" flag per way (and direction), which you can then use in the turn function to put a high penalty on turns from/to "restricted" ways. The general idea is outlined here: https://www.openstreetmap.org/user/happygo/diary/40564 Have a look at

[OSRM-talk] OSRM v5.8.0

2017-06-21 Thread Daniel Hofmann
The 5.8 release is focused on long overdue memory and disk usage reductions across the board. With some minor issues fixed in the guidance engine this release targets stability and benefits on the infrastructure side. Notable additional changes and features are listed below. You can grab the

Re: [OSRM-talk] c++ libosrm api thread safe ?

2017-06-21 Thread Daniel Hofmann
Yes it is thread-safe: you can create a single OSRM object and hammer it with parallel requests. Its interface is const https://github.com/Project-OSRM/osrm-backend/blob/99b02cedfbfc6fb24f6b07dedd6df37e885690a9/include/osrm/osrm.hpp#L48-L131 Adding OpenStreetMap NodeIDs to the route is possible

Re: [OSRM-talk] nearest and driving services not working

2017-05-31 Thread Daniel Hofmann
take for > your server to start working again? because I have setup everything in my > project and the only thing missing is routing from your servers. > > Thanks again > > Regards, > Shahab > > On Wed, May 31, 2017 at 4:16 PM, Daniel Hofmann <hofm...@mapbox.com&g

Re: [OSRM-talk] nearest and driving services not working

2017-05-31 Thread Daniel Hofmann
The demo server has some issues currently. Note that it's always running the latest code as well as the latest planet. In the meantime you can either setup your own routing engine in a couple of steps https://github.com/Project-OSRM/osrm-backend#quick-start or use services such as

Re: [OSRM-talk] Map-matching transit vehicles: giving preference to known routes?

2017-05-28 Thread Daniel Hofmann
; Jack of all trades, Master of Geography > SAUSy Lab <http://sausy.ca>, Sid Smith Hall > > On 05/22/2017 08:28 AM, Daniel Hofmann wrote: > > Actually we base map matching on the distance of _the fastest path_ here: > > https://github.com/Project-OSRM/osrm-backend/blob

Re: [OSRM-talk] Map-matching transit vehicles: giving preference to known routes?

2017-05-22 Thread Daniel Hofmann
this two levels of indirection approach. So if you set edge weights in the profiles accordingly (based on if a way is a transit-relevant way or not) orsm will find the fastest route and then does map matching on it based on its distance. Hope that helps On Mon, May 22, 2017 at 10:38 AM, Daniel Hofmann

Re: [OSRM-talk] Map-matching transit vehicles: giving preference to known routes?

2017-05-22 Thread Daniel Hofmann
Did you see the profile docs here? Granted they could be more detailed but should get you started. If you have anything to add we're always happy for pull requests :) https://github.com/Project-OSRM/osrm-backend/blob/master/docs/profiles.md What I can suggest is to - always provide timestamps

Re: [OSRM-talk] osrm-isochrone, how to install

2017-03-08 Thread Daniel Hofmann
There is no Project-OSRM/osrm-isochrone repo. - maybe you want - https://www.npmjs.com/package/osrm-isochrone - https://github.com/mapbox/osrm-isochrone There is also a experimental isochrone feature integrated into osrm, check this branch - https://github.com/Project-OSRM/osrm-backend/pull/3652

Re: [OSRM-talk] routing profile tracktype

2017-03-08 Thread Daniel Hofmann
Have a look at profiles/lib/handlers.lua - in there you will find handlers for certain situations, for example here for surfaces https://github.com/Project-OSRM/osrm-backend/blob/5.6/profiles/lib/handlers.lua#L275-L293 All handlers are getting called in order here

Re: [OSRM-talk] Released OSRM 5.6.0

2017-02-28 Thread Daniel Hofmann
Correct. That's why we only penalize _turns_ onto such ways. Think: high penalty for entering a gated community. Read more about it here: - https://www.openstreetmap.org/user/happygo/diary/40564 (en) - https://www.openstreetmap.org/user/happygo/diary/40565 (de) Cheers, Daniel J H On Tue, Feb

[OSRM-talk] OSRM v5.5.4 released

2017-01-19 Thread Daniel Hofmann
We've just made a small bugfix release and tagged OSRM v5.5.4. This release fixes some edge cases both in pre-processing as well as in the API. Source code: https://github.com/Project-OSRM/osrm-backend/archive/v5.5.4.tar.gz Documentation: http://project-osrm.org/docs/v5.5.4/api/ node-osrm

Re: [OSRM-talk] Running on windows

2016-10-31 Thread Daniel Hofmann
Unfortunately, the core dev team runs on Linux on macOS - Windows is not on top of our list. If you see hard crashes which you can reproduce, feel free to open a ticket in the osrm-backend Github repository and provide us with as much details as possible. Cheers, Daniel J H On Mon, Oct 31, 2016

Re: [OSRM-talk] Segfault with 5.4.0 osrm-extract and foot.lua

2016-10-06 Thread Daniel Hofmann
Hey Frederik, the 5.4 release and its three profiles (car, foot, bike) work fine for us on all our deployments, with the latest planet. I think we need more details here: first of all, it seems like Ubuntu 16.04 ships Lua5.3 with apt, for which we saw an immense increase in memory usage. This

Re: [OSRM-talk] Per-Direction Node Restrictions

2016-10-06 Thread Daniel Hofmann
This is not planned at the moment, since all the profiles know about are tags. All additional processing has to happen internally in the C++ code, and that's exactly why priority roads / give ways / stop signs are a bit ugly to implement. Sorry. On Thu, Oct 6, 2016 at 12:19 AM, Spencer Gardner

Re: [OSRM-talk] Per-Direction Node Restrictions

2016-10-05 Thread Daniel Hofmann
I started working on this in https://github.com/Project-OSRM/osrm-backend/pull/3009 but it won't be a quick change in the profiles, for sure. Cheers, Daniel J H On Tue, Sep 27, 2016 at 4:29 PM, Spencer Gardner <spencergard...@gmail.com> wrote: > On Tue, Sep 27, 2016 at 5:11 AM, Daniel H

Re: [OSRM-talk] Per-Direction Node Restrictions

2016-09-27 Thread Daniel Hofmann
When you say "should be avoided" you mean completely discarding a way going over a specific node in a single direction? In that case, we support turn restrictions in the form of `fromWay,viaNode,toWay` you could try. As in: `no_turn, fromResidential, viaHighwayNode, toResidential` (Relevant:

Re: [OSRM-talk] OSRM 5.3.0 API polyline encoding precsion question

2016-07-28 Thread Daniel Hofmann
This feature request is tracked in: https://github.com/Project-OSRM/osrm-backend/issues/2485 Now, in case you want to get your hands dirty I'm glad to help you getting started :) Cheers, Daniel J H On Thu, Jul 28, 2016 at 10:54 PM, Alex Farioletti wrote: > I'm upgrading

Re: [OSRM-talk] OSRM on iOS

2016-07-28 Thread Daniel Hofmann
maps.me is using OSRM on mobile devices for offline routing :) https://github.com/mapsme/omim/tree/master/3party/osrm (although v4.6 which is over a year old now and we strongly recommend upgrading to a more recent stable release, since a lot moved in the last couple of month) Cheers, Daniel J

Re: [OSRM-talk] Accuracy of distance matrix calculation

2016-06-30 Thread Daniel Hofmann
There's also a debug endpoint showing the assigned speeds: http://map.project-osrm.org/debug/#12.21/52.5233/13.3987 On Thu, Jun 30, 2016 at 6:55 PM, Daniel Patterson wrote: > Milton, > > What's the exact route in question? Start/end coordinates, or a link to >

Re: [OSRM-talk] OSRM as native library in Android

2016-06-15 Thread Daniel Hofmann
maps.me already uses OSRM on Android (although a somewhat old OSRM version): https://github.com/mapsme/omim So yes, it is possible. That said, OSRM is not a offline-first routing engine. You will notice this in file sizes and memory requirements, among other issues for larger OSM extracts (think

Re: [OSRM-talk] OSRM v5 Speed

2016-04-27 Thread Daniel Hofmann
lenty of references to parseParameters > etc but nothing that I could say for definite were the actual parameters. > > Regards > > > > On 26-Apr-16 11:24 AM, Daniel Hofmann wrote: > > Yes we benchmarked v5 and v4 in > > https://github.com/Project-OSRM/osrm-backend

Re: [OSRM-talk] OSRM v5 Speed

2016-04-26 Thread Daniel Hofmann
Yes we benchmarked v5 and v4 in https://github.com/Project-OSRM/osrm-backend/issues/2211 found some regressions and considerably improved v5 in https://github.com/Project-OSRM/osrm-backend/pull/2241 Are you running the v5 release (and not a RC)? What's your specific use-case? If you enable

Re: [OSRM-talk] Trying to build OSRM v5.

2016-04-24 Thread Daniel Hofmann
-DBUILD_TOOLS does not need gdal from what I can see: https://github.com/Project-OSRM/osrm-backend/blob/8ec1f0a6ebbd38159e5eb96f0240b2b0757fe4de/CMakeLists.txt#L350-L365 It's only the -DBUILD_COMPONENTS flag that enables the tool for small components that needs gdal:

Re: [OSRM-talk] new api table and geometry

2016-04-15 Thread Daniel Hofmann
If you check the v5 spec you linked, you will see only Route, Trip and Match providing a "geometries" option. What you can do is this: - do a Table request from your position against all Bus / Tram stops in the area / in a buffer of a few kilometers - pick n shortest routes from the Table

[OSRM-talk] Experimental C and Python Bindings for OSRM v5

2016-04-02 Thread Daniel Hofmann
Yesterday I started some experimental C bindings for the upcoming OSRM v5 release: https://github.com/daniel-j-h/libosrmc Here is the C example: https://github.com/daniel-j-h/libosrmc/blob/b5e437e9fbd3a96ca17d91ac09a1ce5ecf0df6b6/example.c#L6-L62 Today I had a look at how hard it would be to

Re: [OSRM-talk] edge weights different than time

2016-03-18 Thread Daniel Hofmann
There is already a way to integrate arbitrary raster data (e.g. SRTM elevation data). Take a look at: https://github.com/Project-OSRM/osrm-backend/wiki/Integrating-third-party-raster-data The Lua way_function gets a "way" as argument; this is a osmium::Way registered with the Lua environment

Re: [OSRM-talk] Required RAM for planet

2016-03-08 Thread Daniel Hofmann
1/ Provide a swapfile (100GB just in case): > fallocate -l 100G /path/to/swapfile > chmod 600 /path/to/swapfile > mkswap /path/to/swapfile > swapon /path/to/swapfile Note: this does not write 100 GB of zeros. Instead what it does is allocating a certain amount of blocks and just setting the

Re: [OSRM-talk] Memory Leak?

2016-02-28 Thread Daniel Hofmann
We're currently re-writing the API to make user's life easier :) I would love if you could test the "rewrite/new-api" branch and the adapted example code > https://github.com/Project-OSRM/osrm-backend/blob/rewrite/new-api/example/example.cpp and report back if you can reproduce memory issues with

Re: [OSRM-talk] About Indoor Routing

2016-02-24 Thread Daniel Hofmann
Yes this would be a major lift, as OSRM is built for road network routing and has assumptions about that throughout the code base.From the profiles that extract only certain properties (e.g. speeds based on maxspeed tags), as far as how instructions are generated in the guidance generation, you

Re: [OSRM-talk] Bus routes

2016-01-21 Thread Daniel Hofmann
Currently the demo server only runs the car profile. This is due to how the osrm pipeline works at this point in time: we pre-process the osm files on a per profile basis (may take hours). If we want the user being able to switch between profiles, we have to do this time and cpu consuming

Re: [OSRM-talk] MPH on OSRM?

2016-01-17 Thread Daniel Hofmann
I opened a ticket in the osrm-frontend-v2 issue tracker for bringing back MPH conversion: https://github.com/Project-OSRM/osrm-frontend-v2/issues/153 Cheers, Daniel J H On Fri, Jan 15, 2016 at 2:19 PM, Philip Barnes wrote: > On Wed, 2015-12-30 at 13:28 -0500, Jack Burke

Re: [OSRM-talk] IDE Setup

2016-01-11 Thread Daniel Hofmann
You just reached the sad state of good C++ tooling. I think the most popular choice around here is neovim / vim potentially with plugins like YouCompleteMe, clang-format, and so on. If you really have to use an IDE I would give JetBrains' CLion a try or just use QtCreator. We found that tooling

Re: [OSRM-talk] Access to OSRM API

2016-01-11 Thread Daniel Hofmann
The demo server has some hiccups from time to time, due to its nature of being a demo server. Please also see the API usage policy for the demo server: https://github.com/Project-OSRM/osrm-backend/wiki/Api-usage-policy Cheers, Daniel J H On Mon, Jan 11, 2016 at 5:26 PM, lorenzo

Re: [OSRM-talk] public transport routing

2015-11-20 Thread Daniel Hofmann
I recently looked into this for a few hours. This may help you getting started: GTFS transit feed specification, examples, ecosystem: https://developers.google.com/transit/gtfs/#overview-of-a-gtfs-feed https://github.com/google/transit/tree/master/gtfs-realtime Publicly listed GTFS feeds:

Re: [OSRM-talk] How to disable all ferry routes?

2015-11-11 Thread Daniel Hofmann
If you take a look at the car profile, you will see a ferry_mode variable, that sets the travel mode: https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/profiles/car.lua#L151 If you set this to 0 (i.e. 'inaccessible") as defined here:

Re: [OSRM-talk] How to disable all ferry routes?

2015-11-11 Thread Daniel Hofmann
g as they're non-zero, they will be enabled? > > Richard > > > On Nov 11, 2015, at 9:23 AM, Daniel Hofmann <hofm...@mapbox.com> wrote: > > If you take a look at the car profile, you will see a ferry_mode variable, > that sets the travel mode: >

Re: [OSRM-talk] Extended graph output file

2015-11-11 Thread Daniel Hofmann
The edge-expanded graph already gets written to disk; this was introduced in the following commit: https://github.com/Project-OSRM/osrm-backend/commit/e45656e5bfb0b61a2859f0c754e66322996f1640 which is not yet in the latest release, so you have to build from the develop branch. If you search

Re: [OSRM-talk] profile.lua car.lua tuning

2015-11-05 Thread Daniel Hofmann
Depending on your use case (maybe only a few larger cities?) and if it has to scale, you could do the following (disclaimer: a bit hacky). Take a look here: this is what gets exposed to the profiles for ways:

Re: [OSRM-talk] Road speeds and profile restrictions

2015-10-14 Thread Daniel Hofmann
If osrm-prepare crashed, just add more swap. Also make sure to read this ticket: > https://github.com/Project-OSRM/osrm-backend/issues/1698 I don't think we have documentation for the profiles. I know they are somewhat ugly and huge. I would recommend taking a look at the profile's general

Re: [OSRM-talk] Information on age/timestamp of data currently used in map.project-osrm.org/?

2015-09-21 Thread Daniel Hofmann
The project-osrm.org demo router currently runs on stale data --- this is a known issue and we're working on fixing it asap. On Mon, Sep 21, 2015 at 1:25 PM, Rudolf Mayer wrote: > Hi! > > I was wondering if there is a way to obtain information on the age or > timestamp