The fare is calculated automatically on the basis of the linear kilometres between the boarding and alighting stops. The prerequisite is that the location services of the smartphone are activated in the settings there. The airline fare consists of a basic fare and a kilometre fare (per beeline kilometre or part thereof).
You can find further details on the GöVB homepage