Skip to contents

Determines the minimum decimal places across latitude and longitude

Usage

calculate_coordinate_precision(latitude, longitude)

Arguments

latitude

Numeric vector of latitudes

longitude

Numeric vector of longitudes

Value

Integer representing minimum decimal places, or "N/A" if no valid coords

Examples

calculate_coordinate_precision(c(59.123, 57.4), c(10.12, 11.789))
#> [1] 1
calculate_coordinate_precision(c(59.1234567, 57.456789), c(10.1, 11.12345))
#> [1] 1