https://github.com/LAVS-TM/Map-Generation
A program that can generate cities and towns, medieval Voronoi style. Along with a viewer that can produce graphcis the base output is json, which gives you vector data to use with other things. Very nice!
Here is an example of a possible configuration for the city to be generated:
city = City(10000, 10000, has_walls=True, has_castle=True) tools.json(city, '/generated_city/city.json')