Re: [OSRM-talk] Allowing trunk roads for foot and bicycle directions in the British Isles.

2021-04-24 Thread Daniel Patterson via OSRM-talk
The missing piece is OSRM following the guidelines outlined here: https://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Access_restrictions Practically, here's what needs to happen: 1. Someone needs to make a GeoJSON file with these country boundaries, and set properties on them that describ

Re: [OSRM-talk] How to set speed values back to lua after using speed updates

2020-11-19 Thread Daniel Patterson via OSRM-talk
The way to do this is to keep a copy of the original files - when you run `osrm-customize`, do it on a *copy* of the originals, then load that modified copy with `osrm-datastore`. daniel On Thu, Nov 19, 2020 at 9:09 AM S O wrote: > > Dear all: > > I am using the osrm-datastore and osrm-routed -

Re: [OSRM-talk] Comparing OSRM with the car routing by OpenTripPlanner

2020-11-03 Thread Daniel Patterson via OSRM-talk
I would verify that OSRM considers the highway routable at all - if OSRM has excluded it for some reason (e.g. HOV-only, under construction, etc), then it'll be forced to find the next best thing. Also remember - OSRM is just guessing on the travel speeds based on the tags present on ways in OSM -

Re: [OSRM-talk] pont de Québec not in the routing steps of OSRM

2020-11-02 Thread Daniel Patterson via OSRM-talk
The "steps" that OSRM emits are roughly intended to be human consumable instructions. We often collapse "obvious" maneuvers where it'd be annoying to receive a visual/verbal prompt. For this reason, "steps" aren't great objects to use for data analysis, unless you're specifically interested in th

Re: [OSRM-talk] New v5.23.0 release

2020-10-15 Thread Daniel Patterson via OSRM-talk
> current libosrm versions are no longer compatible until a patch or new > minor version is released. > > Knowing which option is the most likely would definitely help. > > [1] https://github.com/Project-OSRM/osrm-backend/issues/5548 > [2] https://github.com/Project-OSR

[OSRM-talk] New v5.23.0 release

2020-10-14 Thread Daniel Patterson via OSRM-talk
Hello all, Well, after a long hiatus, I've finally had time to cut a new release. I've bundled up a bunch of the changes that have been submitted over the last couple of years, and tagged 5.23.0, and cleaned up the changelog/master branch which had been left dangling in an unclear state for a wh

Re: [OSRM-talk] OSRM does not use date restrictions in conditional access?

2020-10-13 Thread Daniel Patterson via OSRM-talk
Michael, You can pass the `--parse-conditionals-from-now` option to `osrm-contract`, and it will enable/disable access to `access:conditional` ways according to the timestamp you type in. Not so useful for time-of-day restrictions, but for longer time spanning restrictions, it should do the tri

Re: [OSRM-talk] Recreating the same route in another dataset

2020-10-08 Thread Daniel Patterson via OSRM-talk
Take the route geometry you obtained from your 2020 dataset, and use the `/matching` service to match that to your older dataset. If it's impossible to match (e.g. because roads disappeared), well, then it's impossible to match. The `/matching` service allows for some coordinate imprecision, so

Re: [OSRM-talk] Comparing routes from different datasets

2020-07-14 Thread Daniel Patterson via OSRM-talk
If all you want to know is "are the routes different", then you could use something like the Fréchet distance: https://en.wikipedia.org/wiki/Fr%C3%A9chet_distance or calculate the area between the two curves. This would give you a numeric value for how different the path is. daniel On Tue, J

Re: [OSRM-talk] Table request still running even though requesting server has already timed-out the request

2020-07-06 Thread Daniel Patterson via OSRM-talk
No - OSRM doesn't have any code to interrupt a thread that's working on a calculation. We'd need to add code that periodically checks if it should cancel a long-running algorithm. daniel On Mon, Jul 6, 2020 at 9:50 AM ryan.bis...@etruckbiz.com < ryan.bis...@etruckbiz.com> wrote: > So I have a s

Re: [OSRM-talk] Kilometers in /table route

2020-06-09 Thread Daniel Patterson via OSRM-talk
You need to add `?annotations=duration,distance` to your API call - then you'll get metres back as well. daniel On Tue, Jun 9, 2020 at 7:24 AM Aurélien wrote: > Hi, > > Can someone explain me why there is no kilometers in the /table route ? > > Is it a technical problem or a functional non

Re: [OSRM-talk] Need help: Customizing weights in Profile shows inconsistent results with Dijsktra

2020-04-14 Thread Daniel Patterson via OSRM-talk
I would say that the first thing to do to diagnose the problem is to find the shortest possible path (fewest edges) that exhibit this problem for you. At first glance, I'd say that your BPR values aren't what you think they are somewhere along your route, but it's impossible to say exactly where t

Re: [OSRM-talk] Nondeterminism in OSRM response

2020-04-06 Thread Daniel Patterson via OSRM-talk
Yeah - osrm-routed uses the SO_REUSEPORT socket option (see https://lwn.net/Articles/542629/), which means you can run two copies of osrm-routed, and the operating system will round-robin incoming connections between the two processes. Handy if you want to do lossless handover from one process to a

[OSRM-talk] OSRM Demoserver - call for hosting volunteers

2020-01-24 Thread Daniel Patterson via OSRM-talk
Hi all, On Mar 09, 2020, the TLS certificate for router.project-osrm.org is going to expire. At the same time, Mapbox is going to shutdown our hosting of that service. As many of you have probably noticed, our investment in the OSRM codebase has greatly decreased over the last year. This is a c

Re: [OSRM-talk] Bicycle routing, crossing large roads: how to get information on the roads crossed

2019-12-26 Thread Daniel Patterson via OSRM-talk
There are a few old tickets that discuss this: https://github.com/Project-OSRM/osrm-backend/issues/96 https://github.com/Project-OSRM/osrm-backend/issues/477 https://github.com/Project-OSRM/osrm-backend/issues/592 Ultimately, what needs to happen is we need to make the `turn_function` smarter -

Re: [OSRM-talk] Map matching for live data-streams, one point at a time

2019-12-06 Thread Daniel Patterson via OSRM-talk
1. Supply the coordinates in the order travelled: /match/v1/oldest;second-oldest;second-newest;newest 2. Hints aren't quite so helpful for the /matching API - reading the code I actually think there might be a bug here. If you pass in a hint, it'll only use the first snapped candidate from the

Re: [OSRM-talk] Map matching for live data-streams, one point at a time

2019-12-06 Thread Daniel Patterson via OSRM-talk
Hi Alex, If you simply want to find the nearest road to a GPS coordinate, the /nearest service is simpler. The /match service is specifically designed to match a sequence of GPS coordinates *with error* to the most likely path. The problem with using /nearest is that it has no context - if y

Re: [OSRM-talk] Reasonable use of public server

2019-11-03 Thread Daniel Patterson via OSRM-talk
The public server is rate limited to 5000 requests/minute. If you flood it with requests, likely many of yours won't work, and you'll block other people from using it. For this volume of work, you should investigate running a local server. We provide Docker images to run OSRM locally - these sho

Re: [OSRM-talk] Compiling OSRM Code

2019-07-30 Thread Daniel Patterson via OSRM-talk
Looking through the repo history, the function `AddCoordinate` only appeared for a brief time between the 4.9.1 and the 5.0.0 release. It was never part of a tagged version. Bateesh - you have three options: 1) Downgrade your OSRM version to 4.9.1, and use `addCoordinate` instead of `AddCoordi

Re: [OSRM-talk] Docker pre-processing from a python script

2019-07-11 Thread Daniel Patterson via OSRM-talk
opt/car.lua /data/berlin-latest.osm.pbf\": stat > osrm-extract -p /opt/car.lua /data/berlin-latest.osm.pbf: no such file or > directory": unknown. > > I do have data/berlin-latest.osm.pbf in the working directory. Also, could > you explain what "%s:/data" does

Re: [OSRM-talk] Docker pre-processing from a python script

2019-07-10 Thread Daniel Patterson via OSRM-talk
It'd be something like this (untested): subprocess.run(["docker","run","-t","-v", "%s:/data" % os.getcwd(), "osrm/osrm-backend", "osrm-extract -p /opt/car.lua /data/berlin-latest.osm.pbf"]) daniel On Wed, Jul 10, 2019 at 7:22 AM Silvia Oviedo wrote: > > Hi all, > > I would like to run the pre-

Re: [OSRM-talk] OSRM docker error

2019-06-27 Thread Daniel Patterson via OSRM-talk
Very likely you ran out of memory - I'd check your system logs to see if the Linux kernel OOM killer terminated your process. The process suddenly stopping like this with no error is typical of that scenario. Check that your docker install doesn't have some hard memory limits in place - if so, yo

Re: [OSRM-talk] how to enter multiple stops with mouse click

2019-03-06 Thread Daniel Patterson via OSRM-talk
Click two times to make your start and end points. Once you have a route, you can divide it up by clicking on the routeline to add additional waypoints that you can then move around. daniel On Wed, Mar 6, 2019 at 3:48 PM Aykut Ucar wrote: > Hi, > in the demo > http://map.project-osrm.org/ > Ho

Re: [OSRM-talk] Install OSRM on MacOs

2019-01-14 Thread Daniel Patterson
> wrote: > >> I tried : >> >> osrm-extract >>> >> >> osrm-partition >>> >> >> osrm-customize >>> >> >> osrm-contract >>> >> >> That does not work. >> >> And I tried >> &g

Re: [OSRM-talk] Install OSRM on MacOs

2019-01-11 Thread Daniel Patterson
ract >> > > osrm-contract >> > > That does not work too. > > > (iP) Didier > > Le 11 janv. 2019 à 18:45, Daniel Patterson a écrit : > > What were the *exact* commands you ran? > > daniel > > On Fri, Jan 11, 2019 at 6:06 AM Didier Doumerc

Re: [OSRM-talk] Install OSRM on MacOs

2019-01-11 Thread Daniel Patterson
tract/osrm-partition/osrm-customize/osrm-contract` and it > changes nothing. I get the same result. > > I must do something wrong... > > Didier > > Le mer.09/01/19 à 18:18, Daniel Patterson a écrit : > > Hi Didier, > > The `car.lua` file are all the rules for deciding whi

Re: [OSRM-talk] Install OSRM on MacOs

2019-01-09 Thread Daniel Patterson
4894 > <https://www.openstreetmap.org/directions?engine=osrm_car&route=44.3604,2.5903;44.9805,2.6271#map=10/44.6713/2.4894> > > returns : > 1:50 and 103 km > > The second result is better than the first. Is it because of the car.lua > file ? > > > Thanks

Re: [OSRM-talk] Install OSRM on MacOs

2019-01-04 Thread Daniel Patterson
Check out the Wiki page at: https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM With OSRM 5.x, the names of some of the tools changed. You will now want to run `osrm-extract -p profiles/car.lua yourmap.osm` then `osrm-contract yourmap.osrm` daniel On Fri, Jan 4, 2019 at 9:33 AM Didie

Re: [OSRM-talk] Customized Route Planning using OSRM

2018-08-16 Thread Daniel Patterson
Hi Nida, Not out of the box. OSRM focuses on fast route calculation by generating pre-calculated "speed up graphs" (either CH or MLD). The pre-calculation locks in place many of the choices made for routing, and makes things like you describe impossible. Patrick has an experimental branch t

Re: [OSRM-talk] points order

2018-08-02 Thread Daniel Patterson
Hi Valerio, What you're describing falls under the title of "Vehicle Routing Problem" (https://en.wikipedia.org/wiki/Vehicle_routing_problem). OSRM includes a basic solver for the Travelling Salesman Problem solver with the `/trip` API, but it doesn't have a lot of options - it will re-order al

Re: [OSRM-talk] how to block subway routes to foot profile?

2018-06-18 Thread Daniel Patterson
Hi Patrick, In order to exclude them from matching, you'll need a way to identify them via the OSM tags. If you can figure out the tags that are on these ways and not others, you can add some logic to `profiles/foot.lua` to remove them from the routing graph. If they're removed, then won't be

Re: [OSRM-talk] map matching service for a huge number of requests

2018-05-11 Thread Daniel Patterson
at would do the calls to > >> > osrm-routed > >> > in parallel threads? > >> > >> There are lot of examples of how to make python things in parallel > >> threads. For example: > >> https://stackoverflow.com/questions/2846653/how-to-use- >

Re: [OSRM-talk] map matching service for a huge number of requests

2018-05-11 Thread Daniel Patterson
Patrick, There are about a million possible paths you could take here, a lot of it will depend on what skills you have available. Off the top of my head: 1) Speed things up by avoiding HTTP overhead and calling the libosrm.a functions directly instead of hitting `osrm-routed` over HTTP

Re: [OSRM-talk] Snapping preferences

2018-05-04 Thread Daniel Patterson
Hi François, Currently, no - snapping for coordinates is strictly whichever is nearest (with one exception: https://blog.mapbox.com/robust-navigation-with-smart-nearest-neighbor-search-dbc1f6218be8 ). I can think of two things: 1. Try using the `/match` API. This API snaps to *many* ne

Re: [OSRM-talk] How to force match service to return public transport routes only?

2018-05-01 Thread Daniel Patterson
") >> > >> will find first/random relation of route=bus which the way is a >> member >> > >> of, and then returns tag "network". >> > >> >> > >> see also >> > >> https://github.com/Project-OSRM/osrm-backend/issues/5

Re: [OSRM-talk] How to force match service to return public transport routes only?

2018-04-30 Thread Daniel Patterson
ld you just give me an example (with a snippet of > code maybe) of a good implementation of point 1 (Lua profile that only > includes public transport ways in the graph). I just don't have any clue > about implementing this and I'm not aware of any docs that could help me >

Re: [OSRM-talk] How to force match service to return public transport routes only?

2018-04-30 Thread Daniel Patterson
Hi Patrick, This could be tricky, depending on how long the traces you're trying to match are. The OSRM Lua profiles basically act as a filter - they decide which ways from OSM are included in the routing graph, and assign properties to edges in the graph. The map-matching algorithm will t

Re: [OSRM-talk] U-turn penalty?

2018-04-23 Thread Daniel Patterson
n, are there > still active developers on osrm? > > Regards, > Xavier > > Le lun. 23 avr. 2018 à 18:27, Daniel Patterson a > écrit : > >> Hi Xavier, >> >> This u-turn penalty only applies to what you might call "direct >> u-turns" -

Re: [OSRM-talk] U-turn penalty?

2018-04-23 Thread Daniel Patterson
Hi Xavier, This u-turn penalty only applies to what you might call "direct u-turns" - those that occur on a single line feature, like at the end of a cul-de-sac. Unfortunately, for u-turns between divided roads, this penalty value isn't applied - OSRM treats those as two consecutive left turn

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

2018-03-28 Thread Daniel Patterson
gt; > Francois > > *François Lacombe* > > fl dot infosreseaux At gmail dot com > www.infos-reseaux.com > @InfosReseaux <http://www.twitter.com/InfosReseaux> > > 2018-03-28 17:59 GMT+02:00 Daniel Patterson : > >> Hey François, >> >> The only way to

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

2018-03-28 Thread Daniel Patterson
Hey François, The only way to achieve this with OSRM would be to apply large penalties to barriers/tolls. You'll have to pick a penalty value that's *just right* - enough that 0 or 1 will be acceptable, but 2 would force the engine to find another route. Because OSRM doesn't have dynamic cos

Re: [OSRM-talk] OSRM 5.14.3 set kilometers long ways as small elements

2018-03-27 Thread Daniel Patterson
François Lacombe wrote: > Hi Daniel, > > 2018-03-26 19:48 GMT+02:00 Daniel Patterson : > >> Hi François, >> >> Yes, oneways onto your custom road network sound like exactly the kind >> of thing that the small component algorithm ( >> https://en.wikiped

Re: [OSRM-talk] OSRM 5.14.3 set kilometers long ways as small elements

2018-03-26 Thread Daniel Patterson
; My oneway handler set is_forward_oneway=true and backward_mode=mode. > innacessible > > Finally, I don't see any turn icon around my connections on debug render > (despite the style is well installed in debug/index.html), should I worry? > > > Kind thank you for your answe

Re: [OSRM-talk] OSRM 5.14.3 set kilometers long ways as small elements

2018-03-26 Thread Daniel Patterson
Hi François, The small component behaviour happens when a section of the graph is disconnected from the rest. I can think of a few possible reasons you're seeing this: 1. Your road isn't actually connected 2. Turn restrictions or one-ways are preventing access to both ends of the road

Re: [OSRM-talk] Pre-procesing planet.pbf with 128Gb RAM

2018-03-05 Thread Daniel Patterson
ot use the provided node binaries, right? > > Do you think that 192 gb of RAM + swap would be enough to be able to do > preparation without STXXL enabled? > > Thanks! > Jose > > > On Mon, Mar 5, 2018, 19:09 Daniel Patterson wrote: > >> Hi Jose, >> >> 1

Re: [OSRM-talk] Pre-procesing planet.pbf with 128Gb RAM

2018-03-05 Thread Daniel Patterson
Hi Jose, 128GB is not enough to do *everything* in RAM - over 300GB of data is generated during some phases. You'll probably want to do a custom build of OSRM and enable STXXL with `cmake -DENABLE_STXXL=ON ..`. This will build OSRM with the ability to do optimized data-to-disk swapping using

Re: [OSRM-talk] Left/Right side of the street?

2018-03-02 Thread Daniel Patterson
Hi Xavier, Yes. Take a look at the "approaches=curb" parameter - this will force the routing engine to approach the waypoint on the curb side of the road. By default, the curb side is the right, but you can modify that in the Lua profile by changing the "driving_side" property, or if you need t

Re: [OSRM-talk] Feed OSRM with Postgis

2018-03-02 Thread Daniel Patterson
ight be some performance tips you can get from their approach. daniel On Fri, Mar 2, 2018 at 10:13 AM, François Lacombe wrote: > Hi Daniel, > > 2018-03-02 18:31 GMT+01:00 Daniel Patterson : > >> Well, it *could* be done. It would all boil down to providing an >> alt

Re: [OSRM-talk] Feed OSRM with Postgis

2018-03-02 Thread Daniel Patterson
Hi François, Well, it *could* be done. It would all boil down to providing an alternative for `ParseOSMData` here: https://github.com/Project-OSRM/osrm-backend/blob/master/src/extractor/extractor.cpp#L211 That function is responsible for parsing the OSM file, and copying/converting the OSM fie

Re: [OSRM-talk] Small ways get small speeds

2018-03-02 Thread Daniel Patterson
eptable to specify coordinates storage precision in a next > release ? > > Nevertheless, I got that it won't impact a lot my routing results. > > All the best > > François > > 2018-02-28 20:37 GMT+01:00 Daniel Patterson : > >> Hi François, >> >> Wh

Re: [OSRM-talk] Small ways get small speeds

2018-02-28 Thread Daniel Patterson
Hi François, What you are seeing is rounding error. Internally, OSRM only stores the "duration" of each segment, with a resolution of 0.1 seconds. On the map, the speed is calculated by taking the length of the segment, and dividing it by the "duration" value. We store longitude/latitude

Re: [OSRM-talk] osrm-datastore error code 21

2018-02-02 Thread Daniel Patterson
working fine now after adding the kernel.shmall > and kernel.shmmax properties again. > > Kind regards, > Kieran Caplice > > On 29/01/18 18:07, Daniel Patterson wrote: > > Hi Kieran, > > The problem is definitely occurring when trying to allocate the shared >

Re: [OSRM-talk] osrm-datastore error code 21

2018-01-29 Thread Daniel Patterson
48 > ... > > Can you provide any further insight into what the problem might be? > > By the way, we're using the latest release version (v5.15.0) built from > source on 16.04. > > Kind regards, > Kieran Caplice > > > On 26/01/18 17:48, Julien Coupey wrote: > &g

Re: [OSRM-talk] osrm-datastore error code 21

2018-01-26 Thread Daniel Patterson
Kieran, Hmm, we could probably improve the error handling here and make the message a bit more useful. The problem is probably one of: 1) Permission problems accessing /tmp/osrm.lock 2) Permission problems creating shared memory Code 21 is: $ errno 21 EISDIR 21 Is a directory

Re: [OSRM-talk] Get route legs tags in response of route service

2018-01-22 Thread Daniel Patterson
Hi François, By default, no - OSRM doesn't save any data that it doesn't explicitly need. There are two main approaches for getting extra OSM metadata along your route: 1) Use something like https://github.com/mapbox/route-annotator to get the tag information *after* the route is found. 2

Re: [OSRM-talk] calculation of jump distances

2018-01-18 Thread Daniel Patterson
r > > Statistician > > Social & Scientific Systems, Inc. > > Monday-Friday 9:30 to 5:30 > > (301) 628-1576 > > https://www.s-3.com/ > > > > > > *From:* Daniel Patterson [mailto:dan...@mapbox.com] > *Sent:* Tuesday, January 16, 2018 5:24 PM > *To:

Re: [OSRM-talk] calculation of jump distances

2018-01-16 Thread Daniel Patterson
Hi Bryan, OSRM stores the road network in memory. When you supply a coordinate to start/finish a route, the first thing that happens is that the nearest point on the road network is found. Routing then happens from those "snapped" points. If you've got big rural areas, and you're using larg

Re: [OSRM-talk] Any Insight on OSRM re: Valhalla team?

2018-01-16 Thread Daniel Patterson
Hi Jason, Good question! The short term is - not much will change. The team is working on migrating the hosted Valhalla services over to Mapbox's infrastructure (so Mapzen customers have somewhere to turn when valhalla.mapzen.com goes away). That'll take the next few weeks. Planning will

Re: [OSRM-talk] Released OSRM 5.14.3

2018-01-03 Thread Daniel Patterson
e a > javascript code to generate full route instructions from the steps objects > > Mazen > > On Wed, Jan 3, 2018 at 7:42 PM, Daniel Patterson > wrote: > >> Hi Mazen, >> >> Please go to http://project-osrm.org/ and click the "Documentation" >>

Re: [OSRM-talk] Released OSRM 5.14.3

2018-01-03 Thread Daniel Patterson
> On 3 Jan 2018 6:37 p.m., "Daniel Patterson" wrote: > >> Hi Mazen, >> >> You can ignore the hint object, it contains no user-visible data, and >> is not usable on the demoserver. >> >> daniel >> >> On Wed, Jan 3, 2018 at 8:08 AM,

Re: [OSRM-talk] Released OSRM 5.14.3

2018-01-03 Thread Daniel Patterson
Hi Mazen, You can ignore the hint object, it contains no user-visible data, and is not usable on the demoserver. daniel On Wed, Jan 3, 2018 at 8:08 AM, Mazen Mrad wrote: > Greetings; > > I am performing a route task using OSRM http api, it is working perfectly, > but i need to extract the di

[OSRM-talk] Fwd: Help

2017-12-07 Thread Daniel Patterson
Hi Mohamed, The OSRM demo server sits behind a CloudFront (https://aws.amazon.com/ cloudfront/) CDN - Cloudfront has a limit of 8192 bytes for HTTP GET requests (complete HTTP header size, including GET line). The "Bad Request" is coming from CloudFront, not OSRM. You should round down the c

Re: [OSRM-talk] Help

2017-12-07 Thread Daniel Patterson
Hello Mohamed, Can you give an example of the request you're trying? It's not clear whether you're doing this against the OSRM demo server, or against your own installation. daniel On Thu, Dec 7, 2017 at 8:16 AM, Mohamed ELHADAD wrote: > Dear sir, > > I need to calculate the matrix of dista

Re: [OSRM-talk] Determining which concrete version of OSRM 5.x deployed

2017-11-30 Thread Daniel Patterson
Hi Kirill, No, there is no OSRM HTTP API that will return the version number - your client will need to tell you what they installed. daniel On Thu, Nov 30, 2017 at 12:46 AM, Кирилл Луценко wrote: > Hello everyone! > > Our client deployed OSRM 5.x on its production server and now we are > cr

Re: [OSRM-talk] how exactly is "duration" in route service calculated?

2017-11-27 Thread Daniel Patterson
Hi Gunther, You've got the start/end points opposite for those two queries - the routes aren't the same (and thus, are very different in duration.. If you swap the start/end points on the OSRM route, you'll get 6.7 minutes as the result, and the path matches what Google is returning. Make su

Re: [OSRM-talk] Some questions

2017-11-22 Thread Daniel Patterson
Hi Gandalf, 1) If you edit `car.lua`, you can turn off the "exclusions", which will save some memory (perhaps 20%). Other than that, not really. If you pre-process using `car.lua`, you'll only get datafiles that are useful for car driving, it doesn't care about truck/wa

Re: [OSRM-talk] OSRM demoserver update

2017-10-27 Thread Daniel Patterson
The swapover has been completed. Please open tickets if you see any server-move problems crop up. daniel On Fri, Oct 27, 2017 at 5:14 PM, Daniel Patterson wrote: > Hi everyone, > > As most of you have probably noticed, the OSRM demoserver has been > pretty unreliable over

[OSRM-talk] OSRM demoserver update

2017-10-27 Thread Daniel Patterson
Hi everyone, As most of you have probably noticed, the OSRM demoserver has been pretty unreliable over the last few months. This weekend, I'm going to migrate it to live alongside our production infrastructure here at Mapbox. This means it'll get redundancy and monitoring! I'm hoping the

Re: [OSRM-talk] Expecting time for osrm-contract for planet

2017-09-22 Thread Daniel Patterson
has gone to just 75% complete from 65% yesterday >> - 41 hours in total now, and back to maxing CPU again. >> >> Kind regards, >> Kieran Caplice >> >> On 21/09/17 17:17, Daniel Patterson wrote: >> >> OSRM supports *two* core routing algorithms - CH a

Re: [OSRM-talk] Expecting time for osrm-contract for planet

2017-09-22 Thread Daniel Patterson
hours in total now, and back to maxing CPU again. > > Kind regards, > Kieran Caplice > > On 21/09/17 17:17, Daniel Patterson wrote: > > OSRM supports *two* core routing algorithms - CH and MLD. The > `osrm-contract` tool generates the CH dataset, but you can use the MLD >

Re: [OSRM-talk] Routing on HOV lanes

2017-09-21 Thread Daniel Patterson
Yes, this behaviour is baked into the dataset during the "pre-processing" step - you can't currently modify it at query time on the demo server. If you need this behaviour, you have two options: 1) Remove HOV lanes from the avoid list here: https://github.com/Project-OSRM/osrm-backend/blob/mast

Re: [OSRM-talk] Expecting time for osrm-contract for planet

2017-09-21 Thread Daniel Patterson
[info] preprocessing 389797971 (90%) nodes... >> [info] . 10% . 20% . 30% . 40% . 50% . 60% >> >> It hasn't advanced past 60% in the last 2-3 hours. It is however maxing >> CPU and using approximately the same amount of RAM since it started. >> >> Kind regards, >&g

Re: [OSRM-talk] Expecting time for osrm-contract for planet

2017-09-21 Thread Daniel Patterson
Hi Kieran, The contraction time will be slow - many, many hours for the whole planet. *Typically* for the car profile it's about 12 hours, but if you use bike or foot, or your own profile, it can get a lot bigger. If you've messed with the travel speeds, that can have a big effect too. 24 h

Re: [OSRM-talk] OSRM 5.11 Profile

2017-08-31 Thread Daniel Patterson
Hi Frank, That's the only thing you need to change in the car profile - it triggers setting the `rate` to 1, which means routing becomes distance based. I believe the same applies to the foot profile, they share much of the same Lua code. daniel On Thu, Aug 31, 2017 at 8:34 AM, Frank Durste

Re: [OSRM-talk] (no subject)

2017-08-29 Thread Daniel Patterson
Hi Jason, Depends on what you want to achieve. Travel modes are used for a couple of things: 1) For car routing, we primarily use two modes - normal, and ferry mode. This affects how the routing costs are calculated. 2) For the bike profile, the modes end up in the instructions - some

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-28 Thread Daniel Patterson
best > > François > > > *François Lacombe* > > fl dot infosreseaux At gmail dot com > www.infos-reseaux.com > @InfosReseaux <http://www.twitter.com/InfosReseaux> > > 2017-08-25 18:04 GMT+02:00 Daniel Patterson : > >> Hi François, >> >> The only p

Re: [OSRM-talk] Access private roads in routing

2017-08-28 Thread Daniel Patterson
Hi, Unfortunately no - OSRM is designed to perform very fast route calculation, at the expense of flexibility. Whether private roads are allowed is decided during the "pre-processing" step, and you cannot alter that decision when you query a route. You would need to run your own OSRM server

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-25 Thread Daniel Patterson
by > osrm and actual areas with ref tags. > > I'll be testing it for some times and will share it if interested > Thank you for your time > > > All the best > > > 2017-08-25 0:04 GMT+02:00 Daniel Patterson : > >> Yes, connectivity will be a problem in that

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-24 Thread Daniel Patterson
substation boundaries cross the lines and connect both ways to those artificial nodes. daniel On Thu, Aug 24, 2017 at 2:33 PM, François Lacombe wrote: > > 2017-08-24 23:18 GMT+02:00 Daniel Patterson : > >> Franccois, >> >> In the lua profiles, you can set the `result.is_st

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-24 Thread Daniel Patterson
Franccois, In the lua profiles, you can set the `result.is_startpoint` property in `process_way` (used to be `way_function`) to determine whether you can snap to them. We currently use this for ferry routes - paths can use them, but can't start/end on them. Set `is_startpoint` to true for yo

Re: [OSRM-talk] Use OSRM on rivers, railways, power lines

2017-08-24 Thread Daniel Patterson
Hi Francois, In theory, yes, you could route on powerlines, gas lines, or any other linear feature. Ensuring connectivity could be problematic - often rivers are not connected to paths in OSM. Waterways are a bit problematic as they're often modeled as areas - if you modify the Lua script to

Re: [OSRM-talk] start/goal link exclude or include ?

2017-08-23 Thread Daniel Patterson
Currently no. The coordinate snapping only considers distance and direction, you cannot select a subset of snapping candidates. How do you imagine it would work? daniel On Wed, Aug 23, 2017 at 7:38 AM, wrote: > Hi > > Can I only include or exclude start/goal link candidates ? > If osrm can,

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

2017-07-05 Thread Daniel Patterson
For preprocessing: The demoserver uses about 175GB of RAM to preprocess the planet, and around 280GB of STXXL disk space (you'll also need 35GB for the planet file, and 40-50GB for the generated datafiles). For the foot profile, the latest number I have is about 248GB of RAM. Everything else is p

Re: [OSRM-talk] MLD for multiple routing graphs?

2017-06-16 Thread Daniel Patterson
Hi Frederick, Keep your eye on this issue: https://github.com/Project-OSRM/osrm-backend/issues/4007 We're working on something that could be used like this. It's mostly targeted at supporting "avoid X" behaviour, but eventually, it will probably support the use-case you're describing. The

Re: [OSRM-talk] Newbie question : alternative modes

2017-06-13 Thread Daniel Patterson
Hi Ricardo, There is currently no built-in method for this. OSRM supports ferry routes, but only when they're drawn explicitly in OpenStreetMap, and tagged with route=ferry. To do this correctly, you would probably need to draw your own ways down the rivers that you want to support, and conn

Re: [OSRM-talk] Problem with route road

2017-05-06 Thread Daniel Patterson
Hello Wojciech, What is the problem? Daniel > On May 6, 2017, at 16:54, Wojciech Tomczak wrote: > > Wojciech ___ OSRM-talk mailing list OSRM-talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/osrm-talk

Re: [OSRM-talk] [API] Role of profile

2017-04-25 Thread Daniel Patterson
Hi Mateusz, The in the URL is an unused string. It's there for future compatibility if we ever add multiple-profile support to OSRM, but osrm-routed does not look at it currently, other than to ensure that it's there. Quite a few people use it as a reverse-proxy filtering token - run a re

Re: [OSRM-talk] getting into Oxford Street

2017-03-18 Thread Daniel Patterson
Hi Alan, Hmm, the best way to figure this out is going to be to use the OSRM debug map: http://map.project-osrm.org/debug/#15.79/51.5140/-0.1515 This shows roads that are routable (colored), and roads that are isolated from the

Re: [OSRM-talk] Oneway sample: No route found vs Impossible route

2017-02-20 Thread Daniel Patterson
Mateusz, The difference is in the small component snapping. "Impossible route between points" indicates that the two snapping points are on different small-sized Strongly Connected Components (SCC) (i.e. on two separate islands) "No route between points" indicates that the two snap po

Re: [OSRM-talk] hov_ways matching

2017-01-18 Thread Daniel Patterson
Mikey, ignore_hov_ways=true completely removes HOV-only roads from the routing graph - if the value is true, you won't match or route on HOV-only roads because they get dropped. Can you share your GPS trace? If the matching result seems wrong, can you open a ticket at https://github.com/P

[OSRM-talk] OSRM v5.5.2 released

2016-12-21 Thread Daniel Patterson
Hi all, We've just made a small bugfix release and tagged OSRM v5.5.2. This release reverts a change to the map-matching code that caused some fairly major slowdowns if map-matching against the foot or bike profiles (https://github.com/Project-OSRM/osrm-backend/pull/3184). This was an unin

[OSRM-talk] OSRM v5.5.1 published

2016-12-16 Thread Daniel Patterson
Hi folks, True to form, we follow up the 5.5.0 release with a quick bug fix release, v5.5.1. This version fixes a deadlock bug that came up when you used multiple reader processes in combination with osrm-datastore under heavy load. Things should be a lot more stable now. Github releas

Re: [OSRM-talk] Accessing graph data in osrm

2016-11-30 Thread Daniel Patterson
Hi Chris, Ah, this is tricky. If you just create a Datafacade pointing at a `.osrm` files, you don't really get an easily explorable graph. Only the Contraction Hierarchy is loaded into memory, and it's not really conducive to simple neighbor traversal. In order to find a path in a CH, you

[OSRM-talk] OSRM 5.4.3 released

2016-11-08 Thread Daniel Patterson
Hi folks, OSRM 5.4.3 has been tagged and released. This is a bug fix build only. From the CHANGELOG: - #3254 Fixed a bug that could end up hiding roundabout instructions - #3260 fixed a bug that provided the wrong location in the arrival instruction Node modules are building

Re: [OSRM-talk] OSRM-talk Digest, Vol 46, Issue 18

2016-11-01 Thread Daniel Patterson
016, at 10:03 AM, Mark Hagers wrote: > > Hi Daniel, > >> On 1 nov. 2016, at 16:48, Daniel Patterson > <mailto:dan...@mapbox.com>> wrote: >> >> That sounds like a bug, the behavior should be the same. Can you open a >> ticket on GitHub with lo

Re: [OSRM-talk] OSRM-talk Digest, Vol 46, Issue 18

2016-11-01 Thread Daniel Patterson
Mark, That sounds like a bug, the behavior should be the same. Can you open a ticket on GitHub with lots of details (what file you're processing, what version of OSRM, what requests, etc)? daniel > On Nov 1, 2016, at 8:29 AM, Mark Hagers wrote: > > Hi all, > >> On 1 nov. 2016, at 13:18,

Re: [OSRM-talk] Problem in routing

2016-10-27 Thread Daniel Patterson
Hi Emmanuel, Can you explain a bit more what you need? - what tags did you change (on which ways)? - what exactly is going wrong on Belle-Ile ? You cannot route to it? - are you using the OSRM demo server, or are you using your own installation? daniel > On Oct 27, 2016, at 7:54

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

2016-10-26 Thread Daniel Patterson
There's currently a bug in the latest code that's stopping us from updating to the latest OSM planet. The demo server is currently serving up routes for California only, and when you supply coordinates, OSRM finds the nearest road as the start point, even if it's from Africa to California. (we d

Re: [OSRM-talk] Building OSRM undefined reference to 'tbb::empty_task::~empty_task()

2016-09-07 Thread Daniel Patterson
hen we can add the instructions to the Wiki. We already detect broken LTO support in GCC < 4.9.0, but maybe 4.9.2 is also broken. daniel > On Sep 7, 2016, at 1:51 PM, Daniel Patterson wrote: > > Hi Jim, > > Welp, the good news is that I can reproduce this with a Docker

Re: [OSRM-talk] Building OSRM undefined reference to 'tbb::empty_task::~empty_task()

2016-09-07 Thread Daniel Patterson
Hi Jim, Welp, the good news is that I can reproduce this with a Docker image from Jessie. I'll see if I can track down the problem. daniel > On Sep 7, 2016, at 1:22 PM, Jim LeBeau wrote: > > Daniel, > > I am running on a debian linux box, jessie a new install and everything up to > date.

  1   2   >