You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 1, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 1, 2021. It is now read-only.
Changing gps_accuracy DOES make the output a little different, but the result is still weird. I changed gps_accuracy param from 40 to 200, and not gotten a acceptable result.
During the process of tuning the parameter, I cannot guess which one is better. I cannot tell to enlarge the param or reduce it based on the output.
So my question is if there is something like a guideline for tuning the param, or is there some walk around for it?
Yeah, would be nice if we find a solution. But maybe instead of a post processing step, there is an algorithmic solution - maybe @stefanholder, @michaz or @kodonnell have an idea? (Currently this and #51 are the most requested features, quality-wise.)
So I guess whether I can get the relationship of original route and snapped route? Is there any way I can achieve this?
What do you mean here? Something like discussed in #64 ?
There might be a general problem with the normalization in the normalized transition metric. Can you please try to change this line toreturn Math.abs(linearDistance - routeLength); and set transition_probability_beta to 2.0?
I wonder if it's not the HMM, but the data we're giving it. E.g. as per here, the routed distance is simply the distance between nodes, and doesn't (?) take into account the actual position of the candidate relative to the node. So I wonder if changing to e.g. from.getQueryResult().getSnappedPoint() will give better results? I will have a look now (though it may take me a while as I haven't used the web UI before).
As an aside, I've created a bespoke UI for inspecting results (for a project at work), which animates the route (including step-by-step) and shows the candidate points at each step ... which would be rather useful in this case. @karussel, if you're interested, I can add a new issue.
@kodonnell is right. A candidate should not be a node but a road with an offset and a direction. The candidate position should be computed as the closest point on the road to the GPS position.
@stefanholder, the candidates are snapped (and the correct distance is used for emission probabilities), but it looks like it isn't being used for the transition probability. Turns out my idea isn't so trivial ... algo.calcPath only takes IDs, not snapped points. @karussell - is there any easy way to do what I'm thinking?
FYI validated issue appears with accuracy = 20m on the first example file.
@karussel, if you're interested, I can add a new issue
This sounds really interesting. Debugging tools are always very nice to have :) ... is it web or Java swing based?
Turns out my idea isn't so trivial ...
What exactly is your idea :) ?
doesn't (?) take into account the actual position of the candidate relative to the node.
I've still not tried the suggestion from @stefanholder but maybe the location lookup is not returning all possibilities? Normally if would get only a 'too perfect snap' (to the incorrect edge) this would explain the U-turns but we should also get some 'imperfect snaps' to at least one of the correct edges which will give overall better results.
At this stage it's pretty untested (both in unit tests and by users). However, it looks good to me, so I'd probably prefer to close this and then re-open it (or start a new issue) if it arises. Not sure what's standard practice though.
is there still room for improvement?
I think #88 closes this issue well, and the only improvements are probably performance/API related or the like, which I think are separate.
At this stage it's pretty untested (both in unit tests and by users).
Why do you think it is untested by unit tests? All previous stuff works. And as we'll deploy this soon into production we'll get back user reports quickly.
However, it looks good to me, so I'd probably prefer to close this and then re-open it (or start a new issue) if it arises. Not sure what's standard practice though.
Yes, lets keep every issue as small as possible and reopen it later or similar.
Activity
beyondfun commentedon Nov 13, 2016
Any update for the issue? I met the problem also, cannot find a way to solve it.
karussell commentedon Nov 13, 2016
(You can try to change the
gps_accuracy)beyondfun commentedon Nov 14, 2016
Changing gps_accuracy DOES make the output a little different, but the result is still weird. I changed gps_accuracy param from 40 to 200, and not gotten a acceptable result.
During the process of tuning the parameter, I cannot guess which one is better. I cannot tell to enlarge the param or reduce it based on the output.
So my question is if there is something like a guideline for tuning the param, or is there some walk around for it?
Thanks in advance.
karussell commentedon Nov 14, 2016
Currently there is no other workaround that I know.
beyondfun commentedon Nov 14, 2016
I managed to remove the loop path.
But there come another problem, what if the real path is a loop? I will remove the real route in this case.
So I guess whether I can get the relationship of original route and snapped route? Is there any way I can achieve this?
karussell commentedon Nov 14, 2016
Yeah, would be nice if we find a solution. But maybe instead of a post processing step, there is an algorithmic solution - maybe @stefanholder, @michaz or @kodonnell have an idea? (Currently this and #51 are the most requested features, quality-wise.)
What do you mean here? Something like discussed in #64 ?
stefanholder commentedon Nov 14, 2016
There might be a general problem with the normalization in the normalized transition metric. Can you please try to change this line to
return Math.abs(linearDistance - routeLength);and set transition_probability_beta to 2.0?karussell commentedon Nov 14, 2016
Thanks @stefanholder - I'll try with my examples.
And @beyondfun would you mind to try this too?
kodonnell commentedon Nov 14, 2016
I wonder if it's not the HMM, but the data we're giving it. E.g. as per here, the routed distance is simply the distance between nodes, and doesn't (?) take into account the actual position of the candidate relative to the node. So I wonder if changing to e.g.
from.getQueryResult().getSnappedPoint()will give better results? I will have a look now (though it may take me a while as I haven't used the web UI before).As an aside, I've created a bespoke UI for inspecting results (for a project at work), which animates the route (including step-by-step) and shows the candidate points at each step ... which would be rather useful in this case. @karussel, if you're interested, I can add a new issue.
stefanholder commentedon Nov 14, 2016
@kodonnell is right. A candidate should not be a node but a road with an offset and a direction. The candidate position should be computed as the closest point on the road to the GPS position.
kodonnell commentedon Nov 14, 2016
@stefanholder, the candidates are snapped (and the correct distance is used for emission probabilities), but it looks like it isn't being used for the transition probability. Turns out my idea isn't so trivial ...
algo.calcPathonly takes IDs, not snapped points. @karussell - is there any easy way to do what I'm thinking?FYI validated issue appears with accuracy = 20m on the first example file.
kodonnell commentedon Nov 14, 2016
On second thought ... are we both wrong, given the whole virtual node business? I.e. will the closest node actually be the snapped location?
karussell commentedon Nov 14, 2016
This getClosestNode is the virtually created node, so this should be okay IMO.
Yes
karussell commentedon Nov 14, 2016
This sounds really interesting. Debugging tools are always very nice to have :) ... is it web or Java swing based?
What exactly is your idea :) ?
I've still not tried the suggestion from @stefanholder but maybe the location lookup is not returning all possibilities? Normally if would get only a 'too perfect snap' (to the incorrect edge) this would explain the U-turns but we should also get some 'imperfect snaps' to at least one of the correct edges which will give overall better results.
57 remaining items
Refactor unfavoring of virtual edges (graphhopper#885)
Refactor unfavoring of virtual edges (#885) (#909)
Finish penalizing inner-link U-turns (graphhopper#70)
Improve javadoc, refactor and clean up (graphhopper#70)
Use non-normalized transition metric and remove timeDiff check (graph…
Fix unit tests (graphhopper#70)
Improve javadoc, refactor and clean up (graphhopper#70)
Use non-normalized transition metric and remove timeDiff check (graph…
Fix unit tests (graphhopper#70)
karussell commentedon Dec 28, 2016
Can we close here now that #88 is merged or is there still room for improvement?
kodonnell commentedon Dec 30, 2016
At this stage it's pretty untested (both in unit tests and by users). However, it looks good to me, so I'd probably prefer to close this and then re-open it (or start a new issue) if it arises. Not sure what's standard practice though.
I think #88 closes this issue well, and the only improvements are probably performance/API related or the like, which I think are separate.
karussell commentedon Dec 31, 2016
Why do you think it is untested by unit tests? All previous stuff works. And as we'll deploy this soon into production we'll get back user reports quickly.
karussell commentedon Dec 31, 2016
Yes, lets keep every issue as small as possible and reopen it later or similar.