   defp get_body({:ok,
                  %HTTPoison.Response{status_code: 302,
                                      headers: headers}}) do
-
-    {_,location} = Enum.find(headers, fn(header) -> elem(header, 0) == "Location" end)
+    {_, location} = headers
+    |> Enum.find(fn(header) -> elem(header, 0) == "Location" end)
 
     %{"stop" => stop} = Regex.named_captures(@regex, location)
 

  @spec get_info(String.t) :: stop
  def get_info(id) when is_binary(id) do
    stop = String.rjust(id,5,?0)

    {:ok, body} = HTTPoison.get(@info_url <> stop)
    |> get_body

    timetable = Floki.find(body,".gridRow")
    |> Enum.map(&parse_row/1)

    name = Floki.find(body, "#stopTitle")
    |> Floki.text
    |> String.split("-")
    |> List.first


    %Stop{name: Floki.text(name),
          ref: line,
          lines: lines}
  end

  defp parse_stop(_), do: nil
