Data is available for personal use: "publication of the whole database, or of parts of it, by any means is strictly forbidden". http://zefix.admin.ch/hrweb/eng/about.htm
Public transportation in Switzerland is run by a private company, with government regulation (see http://www.admin.ch/opc/fr/classified-compilation/19983388/index.html, in french). An unofficial open transport API with travel timetables has been built and is supported by volunteers in the local Open Data movement: http://transport.opendata.ch - this data is not from the government, nor is officially supported by any Swiss transport agency.