I have a dataframe [df], just like this:
id lat long category 1 -103.3671 43.0835 0 to 0.5 2 -103.3634 43.0855 0 to 0.5 3 -103.3684