Skip to content

Added Elevation to Motorcycle Routing - #571

Closed
boldtrn wants to merge 0 commit into
graphhopper:masterfrom
boldtrn:master
Closed

boldtrn wants to merge 0 commit into
graphhopper:masterfrom
boldtrn:master

Conversation

@boldtrn

@boldtrn boldtrn commented Nov 23, 2015

Copy link
Copy Markdown
Member

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

@karussell

Copy link
Copy Markdown
Member

But somehow the cigar data seemed not to work that good? Even though you mention it would be the better one.

Yes, they are better. What do you mean with 'not working' in this context?

BTW: Why did you changed the min bendiness in the CurvatureWeighting to 1? Actually the Bendiness can be 0

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.

@karussell

Copy link
Copy Markdown
Member

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 :) !

@boldtrn
boldtrn force-pushed the master branch 3 times, most recently from 288733d to c4370fa Compare November 23, 2015 20:50
@boldtrn

boldtrn commented Nov 23, 2015

Copy link
Copy Markdown
Member Author

Allright formating should be fixed.
Also minBendiness is at .1. Shouldn't become lower than this.

You'r welcome ;)

Yes, they are better. What do you mean with 'not working' in this context?

It does not show anything, at least on my machine, not sure if this is something local. But haven't tried in depth.

@boldtrn

boldtrn commented Nov 24, 2015

Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would reduce the number of calling the relative expensive fetchWayGeometry. E.g. pass the pointList to the getBeelineDistance and preferSlopes methods?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sure, I thought about that as well, but thought the method call would not be expensive.

@karussell

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice and no time pressure please :) !

@boldtrn

boldtrn commented Nov 25, 2015

Copy link
Copy Markdown
Member Author

Your comments except for the tests are pushed. I can squash them when its mergeable.

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

Successfully merging this pull request may close these issues.

3 participants