marble
CycleStreetsRunner.cpp
Go to the documentation of this file.
81 itinerarypoints.append( QString::number( route->source().longitude( degree ), 'f', 6 ) + ',' + QString::number( route->source().latitude( degree ), 'f', 6 ) );
83 itinerarypoints.append( '|' + QString::number( route->at( i ).longitude( degree ), 'f', 6 ) + ',' + QString::number( route->at( i ).latitude( degree ), 'f', 6 ) );
102 m_request.setRawHeader( "User-Agent", TinyWebBrowser::userAgent( "Browser", "CycleStreetsRunner" ) );
173 QDomElement coordinates = lineString.toElement().elementsByTagName( "gml:coordinates" ).at( 0 ).toElement();
202 for ( i = 1; i < features.count() && features.at( i ).firstChildElement().tagName() != "cs:segment"; ++i );
208 QStringList points = segment.elementsByTagName( "cs:points" ).at( 0 ).toElement().text().split( ' ' );
209 QStringList const elevation = segment.elementsByTagName( "cs:elevations" ).at( 0 ).toElement().text().split( ',' );
Definition: Maneuver.h:34
void setInterval(int msec)
QDomNodeList elementsByTagName(const QString &tagname) const
Definition: Maneuver.h:41
QString & append(QChar ch)
QString toUpper() const
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
Definition: Maneuver.h:33
void setQuery(const QString &txt)
bool contains(const Key &key) const
void setUrl(const QUrl &url)
CycleStreetsRunner(QObject *parent=0)
Definition: CycleStreetsRunner.cpp:34
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
Definition: Maneuver.h:36
const_iterator constBegin() const
const T & at(int i) const
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:751
Definition: Maneuver.h:30
Definition: Maneuver.h:32
int size() const
const QString nameString(const QString &name, qreal length, const QTime &duration) const
Definition: RoutingRunner.cpp:55
QDomElement toElement() const
QList< Key > keys() const
bool isEmpty() const
const char * name() const
RoutingProfile routingProfile() const
Definition: RouteRequest.cpp:321
int count() const
QString number(int n, int base)
void append(const T &value)
QString text() const
virtual void retrieveRoute(const RouteRequest *request)
Start a route download orw calculation.
Definition: CycleStreetsRunner.cpp:65
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
int toInt(bool *ok, int base) const
bool isFinished() const
QDomNodeList elementsByTagName(const QString &tagname) const
bool isEmpty() const
const_iterator constEnd() const
QByteArray readAll()
QTime addSecs(int s) const
Definition: Maneuver.h:31
const GeoDataExtendedData routeData(qreal length, const QTime &duration) const
Definition: RoutingRunner.cpp:61
void deleteLater()
iterator end()
~CycleStreetsRunner()
Definition: CycleStreetsRunner.cpp:60
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataCoordinates object use the unit parameter to switch between Rad...
Definition: GeoDataCoordinates.cpp:739
Definition: Maneuver.h:28
const QHash< QString, QHash< QString, QVariant > > & pluginSettings() const
Definition: RoutingProfile.cpp:33
void routeCalculated(GeoDataDocument *route)
Route download/calculation is finished, result in the given route object.
QDomNode firstChild() const
QString mid(int position, int n) const
Definition: RoutingRunner.h:28
void setRawHeader(const QByteArray &headerName, const QByteArray &headerValue)
QDomElement firstChildElement(const QString &tagName) const
QString left(int n) const
void start(int msec)
void addQueryItem(const QString &key, const QString &value)
static QByteArray userAgent(const QString &platform, const QString &plugin)
Definition: TinyWebBrowser.cpp:106
iterator insert(const Key &key, const T &value)
QString tagName() const
QNetworkReply * get(const QNetworkRequest &request)
Definition: Maneuver.h:27
Definition: Maneuver.h:37
Definition: Maneuver.h:35
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
iterator begin()
GeoDataCoordinates source() const
The first point, or a default constructed if empty.
Definition: RouteRequest.cpp:131
QDomNode at(int index) const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
const T value(const Key &key) const
void setSingleShot(bool singleShot)
GeoDataCoordinates at(int index) const
Accessor for the n-th position.
Definition: RouteRequest.cpp:149
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.