-
Notifications
You must be signed in to change notification settings - Fork 31
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
Configuration of various constraints and costs #187
Comments
Hi @stupidpupil , thank you for the kind message. I understand the points you raise, they look quite important for many contexts including the UK, Japan, South Africa, India etc. From what I understand the innerworkings of R5 and r5r, though, it sounds to me this would need to be addressed upstream in R5. @mvpsaraiva , what do you think? |
I do think you're right that left-hand drive regions aren't currently fully supported by R5 (per conveyal/r5#644 ) for driving and cycling. (I also suspect that transfer slack times are hard-coded in R5 at the moment.) It does look like driving speeds can be amended by {
"speeds":{
// https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/853603/notes-and-definitions.pdf#page=6
"units":"km/h",
"values":{
"motorway": 78,
"motorway_link": 78,
"trunk": 44,
"trunk_link": 44,
"primary": 44,
"primary_link": 44,
"secondary": 42,
"secondary_link": 42,
"tertiary": 37,
"tertiary_link": 37,
"living_street": 14,
"pedestrian": 5,
"residential": 19,
"unclassified": 37,
"service": 16,
"track": 14,
"road": 37
},
"defaultSpeed": 37
}
} |
Hi @stupidpupil and @rafapereirabr. I was looking into this, and it looks like we just need to save a
Indeed, not all configurations you need are available via We never tested using the |
I have made some tests and indeed R5 looks for a For now, you can call @rafapereirabr and @dhersz: I think we have two options now, moving forward:
|
I like the idea of creating a wrapper function around
This would not entirely address @stupidpupil's issue but it could certainly be helpful. |
I've created a Let me know what you think. |
We've decided to address this issue in a future version. v.1.1 so we can have a better understanding of how the json file affects |
I feel I should say up front: I'm immensely thankful for this package and all the work on r5r (and indeed r5). I really hope that opening this issue doesn't come across as ungrateful.
Some context
I'm based in Wales, one of the four countries of the United Kingdom (UK).
The UK has some unusual features, including:
highway=trunk
)as well as the usual variation between countries, like:
For context, I link to a couple of OpenTripPlanner-related bits of code or configuration: UKWayPropertySetSource.java and my own route-config.json.
Expectations
It should be possible to configure the graph building process and trip planner requests to take account of the local features and variation described above, and this should be explained in the r5r documentation.
r5r might also supply some defaults for different sets of countries if r5 does not do so.
Current situation
It is not clearly documented how to configure r5r to take account of any of the above.
Discussion
I believe that some of this is probably configurable by pre-processing OSM data or supplying a
build-config.json
(when runningsetup_r5
). This is a based on a quick skim of bits of the r5 source, for example SpeedConfig.java and TNBuilderConfig.java.I'll dig into this a bit more and try to draft some documentation if I make sense of it, unless someone tells me I'm looking in the wrong place.
The text was updated successfully, but these errors were encountered: