Remember that this will probably work atm, but will probably not be compatible with a few other quest mod ideas floating around. Like guilds only offering a limited number of quests.
I had another chance to look at this today,
I've got this working without changes to the core code. So rather than auto-declining quests, this will check if the quest is close enough, if not it will look for another one. This will loop and repeat until if finds a suitable quest, how long this loops for can be configured in the mod settings. If it doesn't find a close enough quest, it will use the closest quest it found during the loop as a fallback.
In the mod settings you'll see that the "Maximum Travel Distance In Days" is a float data type, this is for compatibility with Travel Options, e.g if you set it to 0.5 it will prefer quests that are no more than 12 hours away.
This mod will only apply to the randomly generated quests for social and guild quests. I think this way it should work with other mods? Correct me if I'm wrong though. (You can take a look at the code here: https://github.com/Macadaynu/dfunity-mo ... -locations
I've attached the dfmod file for you to try out. Take a look at the mod settings before starting the game, I've defaulted the "Prefer Nearby Quests" setting to false, so that will need to be set to true for these changes to take effect.