It sounds like Neal Stephenson's Snow Crash. Various corporations and residential enclaves carve out tiny sovereign chunks of the landscape and negotiate trade and travel between themselves.
In The Star Faction, the UK has devolved into a bunch of autonomous microstates, which the government in exile is trying to reunite.