parse trip service and direction