marble
OsmNominatimSearchRunner.cpp
Go to the documentation of this file.
64 m_request.setRawHeader("User-Agent", TinyWebBrowser::userAgent("Browser", "OsmNominatimRunner") );
162 if (!administrative.isEmpty()&& !placemarkName.contains(",") && administrative != placemarkName) {
180 GeoDataFeature::GeoDataVisualCategory category = GeoDataFeature::OsmVisualCategory( key + '=' + value );
void setInterval(int msec)
QDomNodeList elementsByTagName(const QString &tagname) const
static GeoDataVisualCategory OsmVisualCategory(const QString &keyValue)
Convenience categorization of placemarks for Osm key=value pairs.
Definition: GeoDataFeature.cpp:875
virtual bool isEmpty() const
Indicates whether the bounding box is not initialised (and contains nothing).
Definition: GeoDataLatLonBox.cpp:768
void setUrl(const QUrl &url)
QString nodeValue() const
void searchFinished(QVector< GeoDataPlacemark * > result)
This is emitted to indicate that the runner has finished the placemark search.
QDomElement documentElement() const
double toDouble(bool *ok) const
QDomNodeList childNodes() const
QDomElement toElement() const
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:93
const char * name() const
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:135
~OsmNominatimRunner()
Definition: OsmNominatimReverseGeocodingRunner.cpp:39
QString text() const
void search(const QString &searchTerm, const GeoDataLatLonBox &preferred)
Start a placemark search.
Definition: OsmNominatimSearchRunner.cpp:49
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
QString nodeName() const
bool isEmpty() const
QByteArray readAll()
QDomNode namedItem(const QString &name) const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:156
void setRawHeader(const QByteArray &headerName, const QByteArray &headerValue)
OsmNominatimRunner(QObject *parent=0)
Definition: OsmNominatimReverseGeocodingRunner.cpp:31
QDomElement firstChildElement(const QString &tagName) const
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:114
void start(int msec)
static QByteArray userAgent(const QString &platform, const QString &plugin)
Definition: TinyWebBrowser.cpp:106
GeoDataVisualCategory
A categorization of a placemark as defined by ...FIXME.
Definition: GeoDataFeature.h:77
QNetworkReply * get(const QNetworkRequest &request)
int size() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QDomNamedNodeMap attributes() const
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
QDomNode at(int index) const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
void setSingleShot(bool singleShot)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.