It's not even that complex, just keep a hash of position fixes and MAC addresses and overwrite it occasionally. I could probably hack something "good enough" on my pinephone in under an hour.
There's the global network where everyone is sharing fixes though... oof I don't really even want to be part of that.