Repository navigation
Conversation
Yes, they are better. What do you mean with 'not working' in this context?
Sorry if I 'fixed' something without asking you for assistance. This values needs to be exact (it should not overestimate) and I tried to understand all the max and min values of the formula you used and obviously made some mistakes. I'll have a look again. |
|
Would you mind to fix the formatting that e.g. the opening bracket has to be on a new line? E.g. use NetBeans or the IntelliJ settings in the core/files folder or manually adjust Eclipse. Otherwise there are many unimportant changes here. Update: ups, I sometimes forget about the most important: Thanks :) ! |
288733d to
c4370fa
Compare
|
Allright formating should be fixed. You'r welcome ;)
It does not show anything, at least on my machine, not sure if this is something local. But haven't tried in depth. |
|
Ok, I just changed some things. I adjusted the min length that a edge needs to have to be even calculated and the minimum number of nodes (3). Also I did a tag based rating. Streets that have sidewalks or lighting are rated worse. I changed the speeds of the streets. Especially the speed of secondary and tertiary. You can drive there way faster on a motorcycle. |
There was a problem hiding this comment.
I would reduce the number of calling the relative expensive fetchWayGeometry. E.g. pass the pointList to the getBeelineDistance and preferSlopes methods?
There was a problem hiding this comment.
Yes sure, I thought about that as well, but thought the method call would not be expensive.
|
Thanks for the improvements! Would you revert the formatting changes in OSMReader and the tests? Also graphhopper.sh needs a revert so that we'll fix this in the separate issue. |
There was a problem hiding this comment.
Interesting! Did not knew about this. Is this usable for bike too @ratrun ?
There was a problem hiding this comment.
Unfortunately it is not used very often, especially on roads. It's oftimes used on trails and paths http://overpass-turbo.eu/s/cVF. But there are some roads and according to the wiki it should be used for beautiful roads e.g. http://wiki.openstreetmap.org/wiki/Talk:Key:highway#Scenic.2Fhistorical_roads.
There was a problem hiding this comment.
Thank you for the hint about the scenic tag. I didn't know it, although I did search for something like this a long time ago, The wiki page was created in 2012 and I searched before that time. I'll prepare a PR for the bicycles. I'll intent to increase the preferene by one level. Although this changes looks easy it might take some time.
There was a problem hiding this comment.
nice and no time pressure please :) !
|
Your comments except for the tests are pushed. I can squash them when its mergeable. |
Basically I added elevation data to the motorcycle routing. I worked with srtm elevation data. The values significantly changed when using the cigar data. But somehow the cigar data seemed not to work that good? Even though you mention it would be the better one.
The elevation widget for the cigar data didn't work in the UI.
Fixed a serious bug when calculating the bendiness. Results should be better now.
BTW: Why did you changed the min bendiness in the CurvatureWeighting to 1? Actually the Bendiness can be 0.
BTW2: Successfully squashed the commits ;)
Best,
Robin