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

2015-09-21 Thread Daniel Hofmann
First of all, don't use C-style casts, a la `(int)myObject;` as this will (in the worst case) degrade to a `reinterpret_cast` and you really don't want this behavior. Now take a look here: > https://github.com/Project-OSRM/osrm-backend/blob/e1ac1c4fdc062a0e5c017d268d0a7fcb25bbbab1/include/osrm/jso

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 of the data that is curren

Re: [OSRM-talk] osrm extract on a osm file created using a using BBox query

2015-09-21 Thread Daniel Hofmann
Down-sizing files with bounding-box queries is dangerous when not carefully executed. We had similar issues a few month ago that went like this: When you do a simple bounding-box query, you do a hard cut through way nodes at the borders, resulting in dangling node references in the OSM file. Wha

Re: [OSRM-talk] osrm extract on a osm file created using a using BBox query

2015-09-23 Thread Daniel Hofmann
raph as such, by exmplae performing teh extract/prepare/run work > for only railwaylines as a test case. > > Thanks again. > > Luc > > > > > > > > On Mon, Sep 21, 2015 at 7:18 PM, Daniel Hofmann > wrote: > >> Down-sizing files with bounding-box qu

Re: [OSRM-talk] osrm rail extract & lua content

2015-09-23 Thread Daniel Hofmann
Take a look at the way function. This is a callback that is called from OSRM on every way: https://github.com/Project-OSRM/osrm-backend/blob/8f6fc0146ba76d34d20c5b7a87b75249bbb12b82/profiles/car.lua#L220 If you follow e.g. the highway variable through the code, you should get a rough sense of how

Re: [OSRM-talk] Building stable OSRM

2015-09-24 Thread Daniel Hofmann
Awesome, thanks for sharing! I skimmed the Dockerfile and it seems like you still pull in the protobuf dependencies. As of v4.8.0 we no longer need those, as libosmium dropped them. We also do not need the libpng dependency. See https://github.com/Project-OSRM/osrm-backend/issues/1628 On Thu, Se

Re: [OSRM-talk] Use osrm-routed as windows service

2015-09-24 Thread Daniel Hofmann
It seems like you are running into the cmake file for finding the Intel Threading Building Blocks (TBB) library not being able to locate the debug libraries: https://github.com/Project-OSRM/osrm-backend/blob/master/cmake/FindTBB.cmake#L239-L242 Can you make sure that you have the TBB debug librari

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 structu

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: https://github.com/Project-OSRM/osrm-backend/blob/a62c10321c0a269e218ab4164c4ccd132048f2

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: https://github.com/Pr

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 for

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

2015-11-11 Thread Daniel Hofmann
As > long as they're non-zero, they will be enabled? > > Richard > > > On Nov 11, 2015, at 9:23 AM, Daniel Hofmann wrote: > > 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-O

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: https:/

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 is

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 wrote: > Sorry,

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 wrote: > > Out of curi

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 pre-proce

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 wou

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 t

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 'unin

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 here

Re: [OSRM-talk] hsgr error after many requests

2016-03-19 Thread Daniel Hofmann
Hm that sounds strange to me, too. What you're seeing is a failure in matching the first couple of bytes (which represents a fingerprint). When you say > I find this weird since I have done the entire set before (with a less elegant approach, but with the same *.osrm* files) could it be that you

Re: [OSRM-talk] One request, 2 answers

2016-03-21 Thread Daniel Hofmann
There are two problems I can see: 1/ the demo server runs from the develop branch, and you are probably running osrm-backend's latest stable release. It certainly could be that we fixed a few issues in develop that you don't yet have locally. 2/ the demo server re-runs the toolchain on a fresh pl

Re: [OSRM-talk] Breaking server API changes

2016-03-22 Thread Daniel Hofmann
Copying from https://github.com/Project-OSRM/osrm-backend/issues/2126 for broader publicity. For a while we've been working on OSRM 5.0.0, which will bring big changes to the osrm-routed HTTP API. You can see the new HTTP API here: https://github.com/Project-OSRM/osrm-backend/wiki/New-Server-api

[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 in

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 response

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: https://github.com/Project-O

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 ste

Re: [OSRM-talk] Running on Windows

2016-04-27 Thread Daniel Hofmann
> Then I would copy the data files from my ubuntu system and run it up and see what happens. This won't work. Data dumps are not portable. Please read this ticket and the tickets referenced in it: https://github.com/Project-OSRM/osrm-backend/issues/2242 Wilhelm Berg automatically builds OSRM bin

Re: [OSRM-talk] OSRM v5 Speed

2016-04-27 Thread Daniel Hofmann
eferences 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/issues/

Re: [OSRM-talk] OSRM map update

2016-06-13 Thread Daniel Hofmann
Here's how to run the toolchain: https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM Your release is a couple of years old (!), please upgrade to 5.1.0 or try a 5.2.0 RC: https://github.com/Project-OSRM/osrm-backend/releases Cheers, Daniel On Mon, Jun 13, 2016 at 11:30 AM, sergi_jini

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] New to OSRM... can I ignore certain turn restrictions but not others?

2016-06-26 Thread Daniel Hofmann
The Lua profiles currently only handle restriction exceptions, as in restriction=*, except=* tag combinations. The restriction parsing in the backend happens here: https://github.com/Project-OSRM/osrm-backend/blob/2a05b70dfcdee1bf3f1ffa4fd1a6e1b1663984fc/src/extractor/restriction_parser.cpp Have

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 > map.project-osrm.org would help

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 H

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 from the 4.0 API to 5.0

Re: [OSRM-talk] Worldwide coverage of Osmose-QA

2016-07-31 Thread Daniel Hofmann
> We are still open to contribution on analyser code or suggestion, on somewhat poor documentation on the wiki, on translation or whatever else. With the focus on guidance and lanes during the last weeks and months, here are some cases I can think of. - Lanes for roundabouts are a mess (ref. http

Re: [OSRM-talk] Worldwide coverage of Osmose-QA

2016-08-02 Thread Daniel Hofmann
On Mon, Aug 1, 2016 at 8:49 PM, Frédéric Rodrigo wrote: > Le 31/07/2016 à 21:34, Daniel Hofmann a écrit : > >> > We are still open to contribution on analyser code or suggestion, on >> somewhat poor documentation on the wiki, on translation or whatever else. >> >&g

Re: [OSRM-talk] decoded Polyline gives wrong coordinates

2016-09-14 Thread Daniel Hofmann
For the record: ticket with more details is at https://github.com/Project-OSRM/osrm-backend/issues/2910 Let's move the discussion there since not all devs subscribe to this list. Cheers, Daniel J H On Wed, Sep 14, 2016 at 10:46 AM, Simon wrote: > Hi, > > I have a problem with the polyline str

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: via-

Re: [OSRM-talk] Add costs on route sections.

2016-09-30 Thread Daniel Hofmann
There are two features you could make use of. 1/ The Traffic feature for continuously updating edge weights depending on live traffic feeds: https://github.com/Project-OSRM/osrm-backend/wiki/Traffic For this you need to map from your sensor's location to OSM ids in order to update edge weights.

[OSRM-talk] OSRM 5.4.0

2016-10-04 Thread Daniel Hofmann
We just released OSRM v5.4.0. This release's focus is on Guidance and improved lane support which we introduced in v5.3. Some selected highlights: - Better classification for Roundabout Turns and roundabouts in general - Improved sliproad detection - Improved turn penalty function fit to real data

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 wrote: > On Tue, Sep 27, 2016 at 5:11 AM, Daniel Hofmann > wrote: > >&g

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

2016-10-05 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 w

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 see

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

2016-10-06 Thread Daniel Hofmann
_ZN4osrm9extractor20ExtractionContainersD1Ev+0x3c)[0x9ae67c] > osrm-extract(_ZN4osrm9extractor9Extractor3runERNS0_ > 20ScriptingEnvironmentE+0xbc2)[0x9bd03a] > osrm-extract(main+0x22c)[0x9123cb] > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fd9e40dd830] > osrm-extract(_star

Re: [OSRM-talk] Add costs on route sections.

2016-10-11 Thread Daniel Hofmann
documentation about how edit an OSM data in order to add > third party data? > Am I thinking reasonably to solve this problem? > Is there any documentation about how lua shall be used in this context? > Should I use the built profiles as a reference instead of checking an > already e

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

2016-10-11 Thread Daniel Hofmann
For the record, tracking over at https://github.com/Project-OSRM/osrm-backend/issues/3033 On Mon, Oct 10, 2016 at 6:27 PM, Michael Krasnyk wrote: > Hello Frederik, > > thank you for reporting and bisecting the first bad commit. > I was able to reproduce the issue with foot profile for Europe and

Re: [OSRM-talk] service is unavailable

2016-10-14 Thread Daniel Hofmann
We're currently switching the demo server to a containerized setup; it should be up again today or in the next days hopefully. Processing the planet alone takes 6-8 hours so downtimes can be a bit long; sorry for that. Cheers, Daniel J H On Fri, Oct 14, 2016 at 11:37 AM, Денис Горобцов wrote:

Re: [OSRM-talk] http://map.project-osrm.org/ only seems to be using roads in California

2016-10-26 Thread Daniel Hofmann
Thanks for reporting, the demo server always runs the latest planet and nightly osrm builds (think of it as a playground) - there is currently a rare edge case in the planet where we're crashing - until this is fixed the demo server only runs California for now. The issue will hopefully be fixed

Re: [OSRM-talk] Erratic route(s) being returned via router.project-osrm.org (ciroBorrelli)

2016-10-26 Thread Daniel Hofmann
Please see https://lists.openstreetmap.org/pipermail/osrm-talk/2016-October/001358.html tl;dr the demo server currently only runs California. What you're seeing is waypoints getting snapped to the same "nearest" location in the California extract. Cheers, Daniel J H On Wed, Oct 26, 2016 at 9:00

Re: [OSRM-talk] Using libosrm

2016-10-31 Thread Daniel Hofmann
Hej! > My requirement is to, write a piece of code that takes start and end locations and return the waypoints that the vehicle has to traverse through. First please make sure you have go as low-level as using libosrm the C++ library instead of using the high-level HTTP interface [0] or the NodeJ

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] Building osrm-backend 15.4.2 or 15.4.3 on Ubuntu 14.04

2016-11-14 Thread Daniel Hofmann
I just added a note on how to update your compiler: https://github.com/Project-OSRM/osrm-backend/wiki/Building-on-Ubuntu#ubuntu-1404 And here's how I could just reproduce a osrm v5.4.3 build in a clean Ubuntu 14.04 Docker container: docker run -it ubuntu:14.04 /bin/bash apt-get update apt-get ins

[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 (n

Re: [OSRM-talk] Crimea - Ukraine or Russia?

2017-02-01 Thread Daniel Hofmann
How is this related to OSRM and routing? What do you expect from us here? On Wed, Feb 1, 2017 at 4:35 PM, Jürgen Barthel wrote: > http://www.openstreetmap.org/note/532851 > > Kengaru keeps closing the > topic (without further reasoning why). The "probl

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 28

Re: [OSRM-talk] profile-name in url

2017-03-08 Thread Daniel Hofmann
It's reserved for future use, see https://github.com/Project-OSRM/osrm-backend/issues/2512 Yes, at the moment you have to start one server per profile and dispatch with a HTTP server in front of it. If you use e.g. the node-osrm bindings [1] you can build a single express/koa HTTP server doing th

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 https://github.com/Project-OSRM

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] osrm-isochrone, how to install

2017-03-09 Thread Daniel Hofmann
origin pull/3652/head:ISOCHRONE > > git merge FETCH_HEAD > > > > Please, can you give me the magic words to get an compilable code-version > with isochrone-service. > > > > > > Frank > > > > > > *Von:* Daniel Hofmann [mailto:hofm...@mapbox

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 oth

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

2017-05-22 Thread Daniel Hofmann
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-28 Thread Daniel Hofmann
es, 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/ > a63b43c259d4

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 https://www.m

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

2017-05-31 Thread Daniel Hofmann
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 > wrote: > >> The demo server has some i

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 b

[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 sourc

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 Ex

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, Dan

[OSRM-talk] OSRM v5.9.0

2017-07-20 Thread Daniel Hofmann
With the v5.9 release we continue to stabilize our Multi-Level Dijkstra (MLD) pipeline which we introduced in v5.7 allowing for incredibly fast traffic updates while still being able to handle requests in the milliseconds. In addition to feature parity for the Contraction Hierarchies (CH) table pl

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.

[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 th

Re: [OSRM-talk] OSRM v5.10.0

2017-08-07 Thread Daniel Hofmann
ld > 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 with a major feature: via-way t

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] 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: - ada

Re: [OSRM-talk] Compiler warnings policy

2017-09-11 Thread Daniel Hofmann
:) On Mon, Sep 11, 2017 at 1:25 PM, Mateusz Loskot wrote: > On 11 September 2017 at 12:34, Daniel Hofmann wrote: > > This Wiki page is a bit outdated; for example there are a few compiler > > warnings on old compilers in combination with specific boost versions. > > AFAICT, co

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 https://github.com/Project-OSRM/osrm-backend/

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&layers=D The default profiles set speed for ferries but they do not (yet) modify weights for

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 in my country that

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, Dan

Re: [OSRM-talk] Feed OSRM with Postgis

2017-11-30 Thread Daniel Hofmann
gt; > *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 : > >> Yes, if all your data comes from a database the best way to get it

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: https://github.com/Project-OSRM/osrm-backend/blo

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: https://github.com/Project-OSRM/osrm-backend/blob/02712cd513bca1b49d867085e80c608a53b7bb03/src/engine/routing_algorithms/alternative_path_ml

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 P

Re: [OSRM-talk] Limit particular points in a route at runtime

2018-03-29 Thread Daniel Hofmann
> I'll ask for about 20 alternatives and filter them according to my rules in post processing, this is the best option currently Even if you request `alternatives=20` you won't get 20 alternatives because most of the times (if not always) there aren't 20 reasonable alternatives. If you want to ch

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), (9