Since all the POIs are created from different lists, multiple for loops were used. With itertools.chain these lists can be looped over with only one for loop thus removing doubled code.
Since all the POIs are created from different lists, multiple for loops were used. With itertools.chain these lists can be looped over with only one for loop thus removing doubled code.