When the player creates a room, first check if we can create streetviews with the players settings (e.g. whether we can get the boundaries for every selected city, or whether there is at least one city with x population in the selected country / continent).
Then, create just one streetview and let the player begin the game. Trigger a lambda function to fill the room with the missing streetviews. If the player clicks on "Next round", check whether the next streetview is already generated and if not, wait.
This should also minimize the perceived loading times #21
Doesn't make any difference, most of the time is spent on getting the nearest streetview via phantomjs, and generating only one streetview takes not significantly less time than generating all of them at once
When the player creates a room, first check if we can create streetviews with the players settings (e.g. whether we can get the boundaries for every selected city, or whether there is at least one city with x population in the selected country / continent). Then, create just one streetview and let the player begin the game. Trigger a lambda function to fill the room with the missing streetviews. If the player clicks on "Next round", check whether the next streetview is already generated and if not, wait.
This should also minimize the perceived loading times #21