It's been a long couple of days, but I've got it working quite nicely now. I have a few little things to tidy up, then I need a new/additional ReadMe file to explain how the popcycle generator works.
I've got the generated popcycle and popgroup both running in my game now, and they are working very well. There is an FPS hit if you take the piss with the amount of different popgroups you have, particularly if you've got several in the same schedule area. I'm running an i5 with a GTX1050ti and 8Gb RAM, with a shade over 1000 vehicles in the game, and have gone from consistent 60fps to mostly 60fps with lows of 40fps in densely populated areas.
I think there are a few things in both files that are beyond my current understanding, that could improve things massively if changed, however to maintain reliability I have left those parts well alone