degreesToMicrodegrees static method

int degreesToMicrodegrees(
  1. double coordinate
)

Converts a coordinate from degrees to microdegrees (degrees × 10^6).

Microdegrees provide integer representation of coordinates with sub-meter precision. No validation is performed on the input coordinate.

coordinate The coordinate value in decimal degrees Returns the coordinate as an integer in microdegrees

Implementation

static int degreesToMicrodegrees(double coordinate) {
  return (coordinate * CONVERSION_FACTOR).floor();
}