Open abyrd opened 7 years ago
We might also want the default value to be specified in the grid, or (more simply) specified as a parameter to the getValue function, because the default value for travel time grids (infinite) is not the same as that for opportunity density (zero).
In gridualizer, I needed to write a function to fetch values from a specific (x, y) location in a grid. It seems like this should be a built in method of grid objects.
We also want to return a specific value when a cell is requested outside the grid. See
function getGridValue (grid, gx, gy)
indot.js
in Gridualizer.