[EDIT]
There is a much simpler way to accomplish this (with items in bases) without waypoints. I am currently investigating the plausibility of this.
Yeah, you could definitely implement it using items and docking restrictions so they would need the item to dock at the base.
As for dynamically creating the waypoints, I haven’t experimented with it at all but I’d guess it would be possible to do (just not sure how exactly).