[OSRM-talk] Install OSRM on MacOs

Didier Doumerc doumerc.d at adimep.com
Mon Jan 14 13:46:29 UTC 2019


Hi Daniel,

Here are the cammands I run : 

Serveur-CMR:osrm-backend informatique$ ./build/osrm-extract ./build/france-latest.osm.pbf -p profiles/car.lua
Serveur-CMR:build informatique$ osrm-partition france-latest.osrm
Serveur-CMR:build informatique$ osrm-customize france-latest.osrm
Serveur-CMR:build informatique$ osrm-contract france-latest.osrm


Serveur-CMR:build informatique$ osrm-routed --algorithm=MLD france-latest.osrm

I looked for another car.lua on the disk. There is none.

Thanks for all.

Didier


Le sam.12/01/19 à 00:36, Daniel Patterson a écrit :

> Hi Didier,
> 
>   I mean, can you include the *full command* you ran?  At a minimum, I'd expect `osrm-extract somemap.osm`.
> 
>   By default, `osrm-extract` will look for a file called `profiles/car.lua` relative to the directory in which you invoke it.
> 
>   I would verify a few things:
> 
>     1. Are you somehow accidentally using a different version of `osrm-extract` from somewhere else on your system PATH (like /usr/local/bin ?)
>     2. Are you passing a `-p profiles/car.lua` parameter explicitly, or are you depending on the default.
> 
>   Also note that modifying the `maxspeed_table_default` and `fr:urban` values will only affect those road types.  This will only affect roads that have `maxspeed=fr:urban` - other road types will not be affected (https://wiki.openstreetmap.org/wiki/Key:maxspeed#Values).
> 
>   If the area you're testing routes in doesn't have those tags, then there will be no effect.
> 
> daniel
> 
> On Fri, Jan 11, 2019 at 3:14 PM Didier Doumerc <doumerc.d at adimep.com> wrote:
> I tried :
>> osrm-extract
> 
>> osrm-partition
> 
>> osrm-customize
> 
>> osrm-contract
> 
> That does not work. 
> 
> And I tried
> 
>> osrm-extract
> 
>> osrm-contract
> 
> That does not work too. 
> 
> 
> (iP) Didier 
> 
> Le 11 janv. 2019 à 18:45, Daniel Patterson <daniel at mapbox.com> a écrit :
> 
>> What were the *exact* commands you ran?
>> 
>> daniel
>> 
>> On Fri, Jan 11, 2019 at 6:06 AM Didier Doumerc <doumerc.d at adimep.com> wrote:
>> So I have modified car.lua file : maxspeed_table_default (all values fixed to 50) and maxspeed_table ["fr:urban"] = 10 etc...
>> 
>> I have re-runned `osrm-extract/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 which OSM ways to import, and what speeds to assign to them.  If you modify the Lua script, you need to re-run `osrm-extract/osrm-contract`.
>>> 
>>>   The OSRM demoserver at `router.project-osrm.org` *also* has traffic data imported (using this mechanism: https://github.com/Project-OSRM/osrm-backend/wiki/Traffic), supplied by Mapbox, so travel times and routes may differ from datasets you generate yourself just using the `car.lua` profile locally.
>>> 
>>> daniel 
>>> 
>>> On Tue, Jan 8, 2019 at 7:47 AM Didier Doumerc <doumerc.d at adimep.com> wrote:
>>> Thanks for your answer Daniel. It works fine !
>>> 
>>> I'm not sure to understand exactly the reason of "-p profiles/car.lua". Does the file car.lua contain speed limits ?
>>> 
>>> Then, if I change a speed, I must run another osrm-extract ?
>>> 
>>> In my exemple, the following request  :
>>> 
>>> 		10.168.221.144:5000/route/v1/driving/2.590291,44.360367;2.627096,44.980478?overview=false
>>> 
>>> returns :
>>> 		1:45 and 100,6 km
>>> 
>>> The same request on https://www.openstreetmap.org/directions?engine=osrm_car&route=44.3604%2C2.5903%3B44.9805%2C2.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+++
>>> 
>>> Didier
>>> 
>>> Le ven.04/01/19 à 18:52, Daniel Patterson a écrit :
>>> 
>>>> 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 Didier Doumerc <doumerc.d at adimep.com> wrote:
>>>> Hi,
>>>> 
>>>> Since I can't upgrade whith a new map (crash when running osrm-prepare), I try to reinstall OSRM. 
>>>> 
>>>> Once I have reinstalled ORSM, I can extract the new map, but I don't find osrm-prepare anymore. I don't know what to do before running osrm-routed.
>>>> 
>>>> Is someone can give me a link please to a clear and complete install method ?
>>>> 
>>>> Thanks and happy new year...
>>>> 
>>>> Didier
>>>> 
>>>> _______________________________________________
>>>> OSRM-talk mailing list
>>>> OSRM-talk at openstreetmap.org
>>>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>>> _______________________________________________
>>>> OSRM-talk mailing list
>>>> OSRM-talk at openstreetmap.org
>>>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>> 
>>> _______________________________________________
>>> OSRM-talk mailing list
>>> OSRM-talk at openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>> _______________________________________________
>>> OSRM-talk mailing list
>>> OSRM-talk at openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/osrm-talk
>> 
>> _______________________________________________
>> OSRM-talk mailing list
>> OSRM-talk at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>> _______________________________________________
>> OSRM-talk mailing list
>> OSRM-talk at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20190114/aa6e0a83/attachment.html>


More information about the OSRM-talk mailing list