Re: [OSRM-talk] maxspeed and speeds in car.lua HELP

2019-08-29 Diskussionsfäden Silvia Oviedo
Thank you for your answer.

I have been changing the speeds in the car.lua profile and routing between
different points with different distances. I have found that, for longer
routes if I reduce all the speeds of the profile, there is a noticeable
difference in the travel times, but it is not the same for shorter
distances. From reading the code, I don't understand this behaviour, can
someone point out possible causes?

Longer Route:
http://localhost:5000/route/v1/driving/-2.130661,52.586363;-1.506500,52.408284?steps=true=true=full=geojson

Medium Route:
http://localhost:5000/route/v1/driving/-1.823924,52.560484;-1.897888,52.481578?steps=true=true=full=geojson

Small Route:
http://localhost:5000/route/v1/driving/-1.823924,52.560484;-1.897888,52.481578?steps=true=true=full=geojson

*Longer Route * *distance (Km)* *time (min)*
at original speed 59.6 60
at 2/3*speed 58.4-60.5 66-73.4
at 1/2*speed 58.4-60.7 71.4-78.8
at 1/3*speed 58.6-58.4 78-79
*Medium Route* *distance (Km)* *time (min)*
at original speed 11.6-12.4 15.6
at 2/3*speed 11.6-12.4 16-19
at 1/2*speed 11.6-12.4 16.3-20
at 1/3*speed 11.6-12.4 17-20
*Small Route* *distance (Km)* *time (min)*
at original speed 0.338-0.387 50.3-64.9
at 2/3*speed 0.338-0.387 50.3-64.9
at 1/2*speed 0.338-0.387 50.3-64.9
at 1/3*speed 0.338-0.387 50.3-64.9


Thank you.

El vie., 23 ago. 2019 a las 1:32, Florian Lohoff () escribió:

> On Fri, Aug 16, 2019 at 02:15:07PM +0200, Silvia Oviedo wrote:
> > Hi everyone,
> >
> > I would like to have your input regarding this:
> >
> > In OSM there is tag: maxspeed. In my case, I find that the majority of
> the
> > primary roads have 30mph ~ 48 kph as a max speed. In the car.lua, I find
> > that the highway speed that has been set primary is 65 kph. Is the speed
> in
> > the OSM tag taken into consideration? I understand that the speed table
> is
> > accessed by WayHandlers.speed() function but I am not sure what's the
> > effect of WayHandlers.maxspeed().
>
> Hi,
> maxspeed, width, oneway, lanes and surface tags are used to determine the
> weight/cost/estimated speed to travel segment - A lanes=1 without
> any oneway will typically assume its typically speed is something like
> halve of the maxspeed. But the whole issue is more complex as lanes
> and maxspeed may carry :forward/:backward suffixes etc.
>
> So the car.lua with the help of lib/maxspeed.lua and others do that
> estimation. If there is no maxspeed osrm has some assumptions for
> road classes.
>
> Flo
> --
> Florian Lohoff f...@zz.de
> UTF-8 Test: The  ran after a , but the  ran away
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>


-- 
Silvia Oviedo Castillo
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


[OSRM-talk] maxspeed and speeds in car.lua

2019-08-16 Diskussionsfäden Silvia Oviedo
Hi everyone,

I would like to have your input regarding this:

In OSM there is tag: maxspeed. In my case, I find that the majority of the
primary roads have 30mph ~ 48 kph as a max speed. In the car.lua, I find
that the highway speed that has been set primary is 65 kph. Is the speed in
the OSM tag taken into consideration? I understand that the speed table is
accessed by WayHandlers.speed() function but I am not sure what's the
effect of WayHandlers.maxspeed().


Thank you for your help!
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


[OSRM-talk] OSRM support for third-party data API version.

2019-07-19 Diskussionsfäden Silvia Oviedo
Hi,

Does the latest OSRM supports integrating third party raster data? If so,
with what api_version?

I am trying to reproduce the steps in the wiki:
https://github.com/Project-OSRM/osrm-backend/wiki/Integrating-third-party-raster-data
using api_version 1 but I get the following:

[info] Raw input contains 5324037 nodes, 783034 ways, and 0 relations, 0
> restrictions
> libc++abi.dylib: terminating with uncaught exception of type
> osrm::util::exception: There are no edges remaining after
> parsing.src/extractor/extractor.cpp:645
> Abort trap: 6
>

I appreciate any ideas on this!
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


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

2019-07-15 Diskussionsfäden Silvia Oviedo
It worked, thank you!

El jue., 11 jul. 2019 a las 16:01, Daniel Patterson via OSRM-talk (<
osrm-talk@openstreetmap.org>) escribió:

> I would recommend reading up on how the `subprocess.run()` function works
> in Python.  Based on the error, it looks like you need to do:
>
> subprocess.run(["docker","run","-t","-v", "%s:/data" % os.getcwd(),
> "osrm/osrm-backend", "osrm-extract", "-p", "/opt/car.lua",
> "/data/berlin-latest.osm.pbf"])
>
> Note how I split the `osrm-extract` parameter into parts in this second
> version - that's what the error message is complaining about.  I don't use
> python all that often, so YMMV here.
>
> daniel
>
> On Thu, Jul 11, 2019 at 1:31 AM Silvia Oviedo 
> wrote:
>
>> Thank you for the suggestion. however I get :
>>
>> /usr/local/bin/docker: Error response from daemon: OCI runtime create
>> failed: container_linux.go:344: starting container process caused "exec:
>> \"osrm-extract -p /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 exactly?
>>
>> Thank you
>>
>> El mié., 10 jul. 2019 a las 18:58, Daniel Patterson via OSRM-talk (<
>> osrm-talk@openstreetmap.org>) escribió:
>>
>>> 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-process of the car profile from a python
>>>> script. I have checked the documentation of subprocess library and  docker
>>>> SDK for python but I don´t know how to properly make the request. For
>>>> example, how could I transform the sh request:
>>>>
>>>> docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p 
>>>> /opt/car.lua /data/berlin-latest.osm.pbf
>>>>
>>>> So it can be done from python. Is that possible?
>>>>
>>>>
>>>> Thank you in advance
>>>>
>>>> ___
>>>> OSRM-talk mailing list
>>>> OSRM-talk@openstreetmap.org
>>>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>>>
>>> ___
>>> OSRM-talk mailing list
>>> OSRM-talk@openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>>
>>
>>
>> --
>> Silvia Oviedo Castillo
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>


-- 
Silvia Oviedo Castillo
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


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

2019-07-11 Diskussionsfäden Silvia Oviedo
Thank you for the suggestion. however I get :

/usr/local/bin/docker: Error response from daemon: OCI runtime create
failed: container_linux.go:344: starting container process caused "exec:
\"osrm-extract -p /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 exactly?

Thank you

El mié., 10 jul. 2019 a las 18:58, Daniel Patterson via OSRM-talk (<
osrm-talk@openstreetmap.org>) escribió:

> 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-process of the car profile from a python
>> script. I have checked the documentation of subprocess library and  docker
>> SDK for python but I don´t know how to properly make the request. For
>> example, how could I transform the sh request:
>>
>> docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p 
>> /opt/car.lua /data/berlin-latest.osm.pbf
>>
>> So it can be done from python. Is that possible?
>>
>>
>> Thank you in advance
>>
>> ___
>> OSRM-talk mailing list
>> OSRM-talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/osrm-talk
>>
> ___
> OSRM-talk mailing list
> OSRM-talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>


-- 
Silvia Oviedo Castillo
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk


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

2019-07-10 Diskussionsfäden Silvia Oviedo
Hi all,

I would like to run the pre-process of the car profile from a python
script. I have checked the documentation of subprocess library and  docker
SDK for python but I don´t know how to properly make the request. For
example, how could I transform the sh request:

docker run -t -v "${PWD}:/data" osrm/osrm-backend osrm-extract -p
/opt/car.lua /data/berlin-latest.osm.pbf

So it can be done from python. Is that possible?


Thank you in advance
___
OSRM-talk mailing list
OSRM-talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/osrm-talk