The csquare code is explained here: http://www.cmar.csiro.au/csquares/csq-faq.htm

csquare_from_dd(lat, lon, resolution = 1e-04)

Arguments

lat

latitude in decimal degrees

lon

longitude in decimal degrees

resolution

the resolution in decimal degress (one of 0.1, 0.01, 0.001, 0.0001 etc)

Value

a character string with the code

See also

Examples

csquare_from_dd(50.93578, -114.01435, resolution = 0.00001)
#> [1] "7511:104:390:131:354:373:485"