Validate coordinate values against the expected range for a given CRS.
coords
Float64Array
[lng0, lat0, lng1, lat1, …]
crs
"WGS84"
"GCJ02"
"BD09"
"Mercator"
A ValidationResult with valid count, invalid count, and indices of invalid pairs.
ValidationResult
Validate coordinate values against the expected range for a given CRS.
Arguments
coords— FlatFloat64Array[lng0, lat0, lng1, lat1, …]crs— One of:"WGS84","GCJ02","BD09","Mercator"Returns
A
ValidationResultwith valid count, invalid count, and indices of invalid pairs.