I was thinking about how hard drive heads know their location by address marks on the disk. One can use that same sort of idea with a lawn by encoding data using magnets. Either the space between them or the polarity.

As I said it was a rough idea. I expect it could be worked out several ways.