Added algorithm to build map json differentiating between several tour legs and mode of transportation