parameters: (pt_journey, transfer_path_pool, request, transfer_sections)
docstring: We complete the pt_journey by adding to transfer section :
          - path
          - We do not modify duration !!
docstring_summary: We complete the pt_journey by adding to transfer section :
          - path
          - We do not modify duration !!
docstring_tokens: We complete the pt_journey by adding to transfer section : - path - We do not modify duration !!
function: def complete_transfer(pt_journey, transfer_path_pool, request, transfer_sections):
      """
          We complete the pt_journey by adding to transfer section :
          - path
          - We do not modify duration !!
      """
      logger = logging.getLogger(__name__)
      logger.debug("completing walking transfer in pt journey")
  
      direct_path_type = StreetNetworkPathType.DIRECT
      real_mode = 'walking'
  
      for s in transfer_sections:
          fallback_extremity = PeriodExtremity(s.end_date_time, True)
          transfer_journeys = transfer_path_pool.wait_and_get(
              s.origin, s.destination, real_mode, fallback_extremity, direct_path_type, request
          )
  
          if transfer_journeys and transfer_journeys.journeys:
              new_section = transfer_journeys.journeys[0].sections
              s.street_network.CopyFrom(new_section[0].street_network)
function_tokens: def complete_transfer ( pt_journey , transfer_path_pool , request , transfer_sections ) : logger = logging . getLogger ( __name__ ) logger . debug ( "completing walking transfer in pt journey" ) direct_path_type = StreetNetworkPathType . DIRECT real_mode = 'walking' for s in transfer_sections : fallback_extremity = PeriodExtremity ( s . end_date_time , True ) transfer_journeys = transfer_path_pool . wait_and_get ( s . origin , s . destination , real_mode , fallback_extremity , direct_path_type , request ) if transfer_journeys and transfer_journeys . journeys : new_section = transfer_journeys . journeys [ 0 ] . sections s . street_network . CopyFrom ( new_section [ 0 ] . street_network )