degreesToMicrodegrees static method
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();
}