gpsToBlock method

int gpsToBlock(
  1. double value
)

Converts a decimal GPS coordinate to an index representing the block in the grid.

Implementation

int gpsToBlock(double value) => (value / models.settings.dashboard.mapBlockSize).round();