Parse routes of lines