Skip to content
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

few matrix serializer fixes #4366

Merged
merged 7 commits into from
Nov 30, 2023
Merged

few matrix serializer fixes #4366

merged 7 commits into from
Nov 30, 2023

Conversation

nilsnolde
Copy link
Member

@nilsnolde nilsnolde commented Oct 28, 2023

I should've walked away when I had the chance.. mostly I'm to blame for these fixes here:

  • add a date_times array to the response of a "slim" matrix (i.e. verbose=false) in case there was any datetime I'll revert that for now. I had complaints about bloating the "slim" matrix from clients.
  • revert some of respond with correlated edges for format=valhalla and matrix #4335: the sources & targets arrays in the response contained all correlated points of all edges and of course tons of duplicates, so here I change it to only return the first correlated edge

Comment on lines +109 to +111
auto& corr_ll = location.correlation().edges(0).ll();
input_locs->emplace_back(json::map(
{{"lat", json::fixed_t{corr_ll.lat(), 6}}, {"lon", json::fixed_t{corr_ll.lng(), 6}}}));
Copy link
Member Author

Choose a reason for hiding this comment

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

changing it to only one correlated edge in the sources & targets response arrays

nilsnolde and others added 2 commits October 29, 2023 02:56
* src/tyr/matrix_serializer.cc is warning free

* Testing with true value and fixing test
@nilsnolde nilsnolde mentioned this pull request Nov 13, 2023
3 tasks
@dnesbitt61 dnesbitt61 merged commit b263871 into master Nov 30, 2023
6 of 7 checks passed
@dnesbitt61 dnesbitt61 deleted the nn-matrix-serializer-fixes branch November 30, 2023 16:49
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.

None yet

4 participants