KPublicTransport::IfoptUtil

KPublicTransport::IfoptUtil Namespace Reference

Functions

QStringView country (QStringView ifopt)
 
QString identifierType ()
 
bool isSameStopPlace (QStringView lhs, QStringView rhs)
 
bool isValid (QStringView ifopt)
 
QStringView level (QStringView ifopt)
 
QStringView merge (QStringView lhs, QStringView rhs)
 
QStringView stopPlace (QStringView ifopt)
 

Detailed Description

Utility functions for dealing with IFOPT (Identification of Fixed Objects in Public Transport).

See also
https://wiki.openstreetmap.org/wiki/Key:ref:IFOPT
https://en.wikipedia.org/wiki/Identification_of_Fixed_Objects_in_Public_Transport

Function Documentation

◆ country()

QStringView KPublicTransport::IfoptUtil::country ( QStringView ifopt)

Returns the country identifier for the given (valid!) IFOPT identifier ifopt.

Definition at line 43 of file ifoptutil.cpp.

◆ identifierType()

QString KPublicTransport::IfoptUtil::identifierType ( )

The identifier type for use in Location::identifer for IFOPT ids.

Definition at line 83 of file ifoptutil.cpp.

◆ isSameStopPlace()

bool KPublicTransport::IfoptUtil::isSameStopPlace ( QStringView lhs,
QStringView rhs )

Checks whether two valid IFOPT ids refer to the same stop place.

Definition at line 58 of file ifoptutil.cpp.

◆ isValid()

bool KPublicTransport::IfoptUtil::isValid ( QStringView ifopt)

Check if ifopt is a valid IFOPT identifier.

Definition at line 14 of file ifoptutil.cpp.

◆ level()

QStringView KPublicTransport::IfoptUtil::level ( QStringView ifopt)

Returns the stop level identifier for the given (valid!) IFOPT identifier ifopt.

Definition at line 53 of file ifoptutil.cpp.

◆ merge()

QStringView KPublicTransport::IfoptUtil::merge ( QStringView lhs,
QStringView rhs )

Merge two IFOPT ids that refer to the same stop place while retaining the maximum level of detail.

Precondition: isValid(lhs) && isValid(rhs) && isSameStopPlace(lhs, rhs)

Definition at line 63 of file ifoptutil.cpp.

◆ stopPlace()

QStringView KPublicTransport::IfoptUtil::stopPlace ( QStringView ifopt)

Returns the stop place identifier for the given (valid!) IFOPT identifier ifopt.

Definition at line 48 of file ifoptutil.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.