-
Notifications
You must be signed in to change notification settings - Fork 684
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add isochrone snapped center coordinates to response #2111
add isochrone snapped center coordinates to response #2111
Conversation
Ok, I think I got it now.. I misunderstood some of the code in the json serializer and I actually found a bug (#2115) concerning multiple locations for isochrones. Also, I added the same logic to reverse search and multimodal. Should we address #2115 before finishing off this PR? And my first question is answered I think: the The build for OSX is failing with
Not sure, what's wrong, but looks like a rookie mistake. The Azure Win build failures look like the same issue:
Any advice on those? |
… serializer should only take the first origin's center, see #2115
I reverted back to master and did what you suggested @kevinkreiser. I just changed the whole location response to MultiPoint and each, input & snapped, are one feature with a property indicating which is which. |
Small bump 😇 |
ok, I think now it could be good to go @kevinkreiser :) Each origin gets one input |
… serializer should only take the first origin's center, see #2115
…coordinates of snapped node(s)
… into add-isochrones-center-2
Damn, smth went wrong with merging master.. Might be a good idea to squash the commits, should be ok other than that. Next time will be smoother! |
What do you think @kevinkreiser ? Can we merge this? |
… into add-isochrones-center-2
@nilsnolde thanks for updating the PR. when the builds pass we'll merge it |
* master: Clarify cmake flag preconditions. Fix coverage flag. Include appropriate license header. Disable -Werror in CI build. Remove -Wconversion Update README and CI configuration. Revert coverage flags back to being PUBLIC. Remove stray comment. Refactored flags to use a function; fixed valhalla_module target; flag for Werror Adds a cmake module for libcxx flag macros. Stop impact, PH, turn channel speeds, and tagged speed updates (#2198) add isochrone snapped center coordinates to response (#2111) Summary Doesnt Match Accumulated Maneuvers (#2195)
#1961
Adds the snapped center point of an isochrone to the response.
This is my first ever C++ code 🍾 Wasn't the most difficult task though. Still not sure if this is properly done:
I'm not sure what the
valhalla::Location::path_edges
represent before the start of the isochrone computation. I'd guess all edges found near the input location?! Does it then expand the search from all these edges it found nearby the input location? In which case there actually isn't smth like a single snapped point?!Which property of the
valhalla::Location_PathEdge::Location_PathEdge
is giving me the actual snapped point for a given edge invalhalla::Location::path_edges
? I can seepercent_along()
as a function, suggesting it does know the snapped origin. The only attribute I found isll_
, but whether that's the edge geometric center, one of it's start/end nodes or the actual snapped origin, I'm not sure..I'll amend if you'd be so nice to quickly point me in the right direction. And also apply this to the other
Compute
functions forTasklist