Skip to content

[not ready] Compute route sketches#1178

Closed
TheMarex wants to merge 10 commits intodevelopfrom
experimental/route-sketch
Closed

[not ready] Compute route sketches#1178
TheMarex wants to merge 10 commits intodevelopfrom
experimental/route-sketch

Conversation

@TheMarex
Copy link
Copy Markdown
Member

@TheMarex TheMarex commented Sep 9, 2014

This PR implements an experimental idea of displaying a "routing sketch" instead of a textual representation of turn instructions.

This is just an initial tracking PR to get travis/appveyor builds.

This will not work without a modified front-end. The current (hacky) implementation lives in features/route-sketch.

@emiltin
Copy link
Copy Markdown
Contributor

emiltin commented Sep 9, 2014

sounds cool. have a screenshot?

@TheMarex
Copy link
Copy Markdown
Member Author

TheMarex commented Sep 9, 2014

preview

@emiltin
Copy link
Copy Markdown
Contributor

emiltin commented Sep 9, 2014

thank you, that's interesting. maybe long stretches could include dashes in the sketch?

@DennisOSRM
Copy link
Copy Markdown
Collaborator

Nice idea. I like that.

@TheMarex TheMarex force-pushed the experimental/route-sketch branch 2 times, most recently from fb4d362 to ad37791 Compare September 15, 2014 12:13
@TheMarex
Copy link
Copy Markdown
Member Author

TheMarex commented Oct 4, 2014

@DennisOSRM the more general commits should be moved upstream. I want to keep the surface area of this branch as small as possible, so it won't be a big burden in the future.

Would be cool if you could take a look at the DP commit that uses iterators instead of indices. If you are okay with the general idea, I will do some benchmarking to make sure we don't get performance regressions.

@TheMarex TheMarex force-pushed the experimental/route-sketch branch 2 times, most recently from bed4cdd to c696275 Compare October 4, 2014 14:04
@DennisOSRM
Copy link
Copy Markdown
Collaborator

Yep, will do on Monday.

Am 04.10.2014 um 15:50 schrieb Patrick Niklaus notifications@github.com:

@DennisOSRM the more general commits should be moved upstream. I want to keep the surface area of this branch as small as possible, so it won't be a big burden in the future.

Would be cool if you could take a look at the DP commit that uses iterators instead of indices. If you are okay with the general idea, I will do some benchmarking to make sure we don't get performance regressions.


Reply to this email directly or view it on GitHub.

@DennisOSRM
Copy link
Copy Markdown
Collaborator

We can start moving these changes upstream. This should be possible by cherry-picking the commits into a separate branch. It does make sense to add facade methods to DP to keep the number of breaking changes small, e.g. similar to this:

void DouglasPeucker::Run(std::vector<SegmentInformation> &input_geometry, const unsigned zoom_level)
{
  Run(std::begin(input_geometry), std::end(input_geometry), zoom_level);
}

@alex85k
Copy link
Copy Markdown
Contributor

alex85k commented Oct 6, 2014

Please do not forget to add #include<numeric> to fix std::iota errors on Windows :)

@TheMarex TheMarex force-pushed the experimental/route-sketch branch from c696275 to 36e2897 Compare October 11, 2014 11:49
@TheMarex TheMarex force-pushed the experimental/route-sketch branch from 8fe61d5 to f36a2bf Compare November 4, 2014 21:38
@TheMarex TheMarex force-pushed the experimental/route-sketch branch from e9647ec to e592a1d Compare November 22, 2014 13:07
@alex85k
Copy link
Copy Markdown
Contributor

alex85k commented Nov 23, 2014

The Windows build fix that worked for me: alex85k@28e6e90 (see below)

@alex85k
Copy link
Copy Markdown
Contributor

alex85k commented Nov 23, 2014

There are warnings about class/struct mismatch in forward declaration like this:

d:\build_r2\osrm_libs\osrm-backend\algorithms\monotone_decomposition.hpp(6): warning C4099: 'SymbolicCoordinate' : type name first seen using 'struct' now seen using 'class' [D:\build_r2\osrm_libs\osrm-backend\build\algorithm-tests.vcxproj]
d:\build_r2\osrm_libs\osrm-backend\algorithms\monotone_decomposition.hpp(7): warning C4099: 'SubPath' : type name first seen using 'struct' now seen using 'class' [D:\build_r2\osrm_libs\osrm-backend\build\algorithm-tests.vcxproj]

So there is a simpler fix: alex85k@99a5b9b . Is it better to fix all such warnings (and potential errors) by using struct in all other forward declarations of SymbolicCoordinate / SubPath? alex85k@4224764

@alex85k
Copy link
Copy Markdown
Contributor

alex85k commented Nov 23, 2014

There are also some double-to-int conversion warnings:

d:\build_r2\osrm_libs\osrm-backend\algorithms\../DataStructures/SymbolicCoordinate.h(70): warning C4244: 'argument' : conversion from 'const SymbolicCoordinate::ScalarT' to 'int', possible loss of data [D:\build_r2\osrm_libs\osrm-backend\build\OSRM.vcxproj]
d:\build_r2\osrm_libs\osrm-backend\algorithms\../DataStructures/SymbolicCoordinate.h(70): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data [D:\build_r2\osrm_libs\osrm-backend\build\OSRM.vcxproj]
d:\build_r2\osrm_libs\osrm-backend\algorithms\../DataStructures/SchematizedPlane.h(39): warning C4244: 'argument' : conversion from 'double' to 'const float', possible loss of data [D:\build_r2\osrm_libs\osrm-backend\build\OSRM.vcxproj]

@Ylannl
Copy link
Copy Markdown

Ylannl commented Sep 16, 2015

Interesting. Makes me think of LineDrive.

@TheMarex TheMarex closed this Jan 19, 2016
@DennisOSRM DennisOSRM deleted the experimental/route-sketch branch November 7, 2019 11:44
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.

5 participants