-
Notifications
You must be signed in to change notification settings - Fork 7
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
Encoding stations.stationArea with polyline #526
Encoding stations.stationArea with polyline #526
Conversation
Looks good to me, just wondering if |
…nAreaPolylineEncodedMultiPolygon
…iPolygon in the test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment about schema documentation of the new graphql field
Quality Gate passedIssues Measures |
Summary
Issue
Closes ETU-51094
Motivation: MultiPolygon data can get quite large for mobile network traffic. Using mapbox polyline can reduce this size by ~90%. This is a lossy compression, but only unnecessary decimal info is lost. Precision has been set to 6 decimals.
How the code works: Add the extra polylineEncodedMultiPolygon field on Station , which is the same as the existing stationArea.coordinates, but where the innermost list of coordinates List<List> is replaced by an encoded String.
Unit tests
Added testStationsPolylineEncodedMultiPolygon
Documentation
Description in graphql schema added.