I appreciate your offer to share your code but it won’t be necessary here as we already have our own solution.
Ok, I trust that this will be sufficient for feeling natural land shapes, and natural resources distribution. In general,… inland towns, cities, and villages rises near rich natural resources.
Besides, you want to keep source code closed (I guess).