parameters: (data, from_node, to_node)
return_statement: return travel_time
docstring: Gets the travel times between two locations.
docstring_summary: Gets the travel times between two locations.
docstring_tokens: Gets the travel times between two locations .
function: def travel_time(data, from_node, to_node):
          """Gets the travel times between two locations."""
          if from_node == to_node:
              travel_time = 0
          else:
              travel_time = manhattan_distance(data.locations[
                  from_node], data.locations[to_node]) / data.vehicle.speed
          return travel_time
function_tokens: def travel_time ( data , from_node , to_node ) : if from_node == to_node : travel_time = 0 else : travel_time = manhattan_distance ( data . locations [ from_node ] , data . locations [ to_node ] ) / data . vehicle . speed return travel_time