Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speed on highway=path #318

Closed
emmexx opened this issue Jul 2, 2012 · 9 comments
Closed

speed on highway=path #318

emmexx opened this issue Jul 2, 2012 · 9 comments
Milestone

Comments

@emmexx
Copy link

emmexx commented Jul 2, 2012

I'm trying to force osrm to use highway=path.
In speedprofile I put a line with
path=30
I'm using the latest version of osrm downloadable from github:
DennisOSRM-Project-OSRM-bddac87

I tried a very simple route with start and target on the same way with highway= path and I get:

{"version": 0.3,"status":0,"status_message": "Found route between points","route_geometry": "k_qtGsg_w@l@rAbBpBn@hB","route_instructions": [["10","Viale Cervantes",159,0,0,"159m","S",172.46],["15","",0,3,0,"","N",0.0]],"route_summary": {"total_distance":160,"total_time":97,"start_point":"Viale Cervantes","end_point":"Viale Cervantes"},"via_points":[],"hint_data": {"checksum":-1967517059, "locations": ["A50BAO4NAAAgAAAARAAAAO-bGd4s7tQ_BmRFAIoADgC", "vyYAAO4NAABgAAAAAAAAAAAAAAAAAPA_pWNFAPL_DQB"]},"transactionId": "OSRM Routing Engine JSON Descriptor (v0.3)"}

The average speed of the trip is 5.94 km/h.

Are there any rules applied when travelling through a path?

thank you
maxx

@emiltin
Copy link
Contributor

emiltin commented Jul 2, 2012

it might be using the default speed? what's it set to in your profile?

@emmexx
Copy link
Author

emmexx commented Jul 2, 2012

defaultSpeed = 12

@emmexx
Copy link
Author

emmexx commented Jul 2, 2012

That path has a maxspeed:bicycle=5 set.

Could be that the "problem"?

@emiltin
Copy link
Contributor

emiltin commented Jul 3, 2012

it's possible that osrm incorrectly uses maxspeed:bicycle?

@emmexx
Copy link
Author

emmexx commented Jul 3, 2012

Emiltin, why did you write "incorrectly"? I'm using a bicycle speedprofile, so I'd expect OSRM to use the maxspeed:bicycle value.
MY problem is that osrm almost never chooses an highway=path way since it's speed value is always less than other types of ways.

@emiltin
Copy link
Contributor

emiltin commented Jul 4, 2012

well, if you're not legally allowed to move faster than 5km/h, then perhaps the route is really not that attractive?

anyways, if you're using a bike profile, then maxspeed:bicycle will be used - unless you set takeMinimumOfSpeeds=no in your speedprofile (if i understand it correctly, i find this feature a bit confusing). check the code in ExtrractorCallbacks.h around line 200.

@emmexx
Copy link
Author

emmexx commented Jul 4, 2012

Il 07/04/2012 07:56 AM, Emil Tin scrisse:

well, if you're not legally allowed to move faster than 5km/h, then
perhaps the route is really not that attractive?

In theory you're right, in practice:

  • some those path are 20 meters wide so you can run at 10 km/h with no
    danger to anybody
  • most important, I'm routing for bikes, almost always cyclists like to
    ride less even if it takes more time. I mean, if I don't go through
    those paths I have to ride triple the length.

anyways, if you're using a bike profile, then maxspeed:bicycle will
be used - unless you set takeMinimumOfSpeeds=no in your speedprofile
(if i understand it correctly, i find this feature a bit confusing).
check the code in ExtrractorCallbacks.h around line 200.

I already tried to set takeMinimumOfSpeeds=no to no avail.
I had checked that code and it did seem to me reasonable.

Thanks
maxx

@emiltin
Copy link
Contributor

emiltin commented Jul 10, 2012

all this will change when the new LUA-based parsing system is implemented. it will provide a more flexible way to handle tags.

@DennisOSRM
Copy link
Collaborator

Not sure what the problem here is. Flagging it as duplicate to #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants