manipulating input route data
RouteMaps was created to build a more readable code