A unique locationID is created for each incoming
longitude
and latitude
. The following code is used to generate
each locationID. See the references for details.
# Retain accuracy up to ~.1m
locationString <- paste0(
sprintf("
"_",
sprintf("
)# Avoid collisions until billions of records
locationID <- digest::digest(locationString, algo = "xxhash64")