Last active
May 23, 2021 19:54
-
-
Save MilosPaunovic/557c9aca287b7cbafa665c40a2bb2bca to your computer and use it in GitHub Desktop.
Rounding geographic coordinate to more usable value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const roundCoordinate = (coordinate) => { | |
//https://gis.stackexchange.com/a/109178 | |
return parseFloat(coordinate.toPrecision(7)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment