Closed trevorgerhardt closed 7 years ago
One other thing: are we sure it's wise to remove all of the metadata (zoom, width, height, etc) from a surface? Then we just have giant arrays of values floating around and we don't know how to interpret them.
One other thought I had was that we have two ways to represent grids of data: surfaces for travel time and grids for opportunity counts. Maybe we should just eliminate surfaces altogether and return grids of travel time?
The metadata for the surface is the same as the query, correct? Since we use the set of objects <query, origin, stopTreeCache, grid> to generate a surface we may want to manually tie them together.
You'll have to elaborate a bit more on what you mean for the feasibility of the second question. What would the drawbacks be to doing that? Would there be significant increases in speed, ease of use, storage, etc.?
Another word on the visualizations.
This library was created before we started more robustly testing front end components and we avoided adding tests here due to the nature of the library and running the example was assumed to show you if you shot yourself in the foot. I am not against using these visualizations to test data and changes here, but I think a more robust __test__
suite should be implemented first that can be run on each check.
Also, if these visualizations are robust/useful would they not be useful in other applications that use browsochrones?
@mattwigway I'd like to merge this code in and cut a release. Since all the tests are new it's coverage is much more robust then it was before. I would say let's merge what's in here now (barring any significant code issues) and cut a release. With future versions we can make the tests more robust.
Codecov Report
0% <0%> (ø)
0% <0%> (ø)
0% <0%> (ø)
93.33% <100%> (ø)
100% <100%> (ø)
84.21% <100%> (ø)
100% <100%> (ø)
100% <100%> (ø)
100% <100%> (ø)
100% <100%> (ø)
Continue to review full report at Codecov.