Reducing the complexity of the method 'getCoordinatesFromRoute'