Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add more PathDetails#1142

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
karussell merged 5 commits intographhopper:masterfromboldtrn:issue_1140
Aug 23, 2017
Merged

Conversation

@boldtrn
Copy link
Member

Fixes#1140.

I added all PathDetails that were requested in#1140. In order to add the time, I used the Weighting. I don't especially like this, as it adds an additional dependency, but I think it's the best solution for this problem.

publicbooleanisEdgeDifferentToLastEdge(EdgeIteratorStateedge) {
if (edge.getEdge() !=edgeId) {
edgeId =edge.getEdge();
time =weighting.calcMillis(edge,encoder.isBackward(edge.getFlags()), -1);
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Since we don't have the reverse Flag here, I used this "hack" to determine the direction of the flag. Not sure if this is valid or if we should do it different?

Copy link
Member

@karussellkarussellAug 22, 2017
edited
Loading

Choose a reason for hiding this comment

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

The edges in the Path should be already properly directed so reverse should be alwaysfalse for the path details?

Copy link
Member

@karussellkarussell left a comment

Choose a reason for hiding this comment

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

Thanks a lot! I really like how simple and clean this looks now :)

assertEquals(3,averageSpeedDetails.get(3).getFirst());
assertEquals(4,averageSpeedDetails.get(3).getLast());

List<PathDetail>streetNameDetails =details.get(STREET_NAME);
Copy link
Member

Choose a reason for hiding this comment

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

We should have different test methods for the different path details (and maybe reuse the common parts)

elseif (value.getValue()instanceofInteger)
gen.writeNumber((Integer)value.getValue());
elseif (value.getValue()instanceofInteger)
gen.writeNumber((Integer)value.getValue());
Copy link
Member

Choose a reason for hiding this comment

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

I think this is somehow duplicated?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Oops, you are right :)

@karussellkarussell added this to the0.10 milestoneAug 23, 2017
@karussellkarussell merged commitb82b139 intographhopper:masterAug 23, 2017
@boldtrnboldtrn deleted the issue_1140 branchAugust 23, 2017 22:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@karussellkarussellkarussell approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

0.10

Development

Successfully merging this pull request may close these issues.

2 participants

@boldtrn@karussell

[8]ページ先頭

©2009-2025 Movatter.jp