Generated Map Modding Sacred site and Market Generation Part 2

So I asked a similar Question already, This one is a little different.

How would I control where the default Sacred Site and Markets spawn? I want to have Sacred Sites spawn randomly in a central area. And I want the default Markets to spawn close to the edges.