Repository navigation
removed AbstractFlagEncoder.speedDefault and flagsDefault() - #2202
Merged
Merged
Conversation
…ingManager.flagsDefault()
easbar
reviewed
Dec 6, 2020
easbar
reviewed
Dec 6, 2020
easbar
reviewed
Dec 6, 2020
easbar
reviewed
Dec 6, 2020
Member
Author
|
@easbar I have also committed the changes with formatting like you suggested. Is this in a shape where I can merge this or should we e.g. remove the addition of the new set methods? If we keep them I'll add a few tests at least :) |
easbar
approved these changes
Dec 9, 2020
easbar
left a comment
Member
There was a problem hiding this comment.
Looks good and I would keep the setter methods.
Member
Author
|
Ok, replaced a few places so that btw: I like the cleanup here :) 84f673a#diff-9fa225a474dad457f320fc9e51c0337f69b560f7c9b676387e8d2155d8ef1d21 |
Merged
easbar
reviewed
Dec 13, 2020
easbar
added a commit
that referenced
this pull request
Dec 14, 2020
easbar
added a commit
that referenced
this pull request
Dec 14, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It took a bit time, but finally I got rid of this method :) (usage was approx 2000 times). This will likely make it easier to move average_speed and access parsing into a separate TagParser.
My best friend was regex replace functionality of IntelliJ ala:
graph.edge\((\d+)..(\d+)..(\d+),(or variations with(\d+.\d+)or(\w+))GHUtility.setProperties(graph.edge($1,$2).setDistance($3),encoder,60,true,The new mechanism is a bit clumsy, but if you think about this then it is really necessary to initialize the edge with a specific speed (and vehicle). And in production we do not use this method, only for tests.
TODO: replace more single method calls of GHUtility with the new
GHUtility.setProperties(List<EdgeIteratorState>)?