16 #ifndef QGSNOMINATIMGEOCODER_H
17 #define QGSNOMINATIMGEOCODER_H
19 #include "qgis_core.h"
49 QgsNominatimGeocoder(
const QString &countryCodes = QString(),
const QString &endpoint = QString() );
51 Flags
flags()
const override;
71 QString endpoint()
const;
78 void setEndpoint(
const QString &endpoint );
100 QString countryCodes()
const;
110 void setCountryCodes(
const QString &countryCodes );
114 QString mCountryCodes;
116 double mRequestsPerSecond = 1;
118 static QMutex sMutex;
120 static qint64 sLastRequestTimestamp;
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Container of fields for a vector layer.
Encapsulates the context of a geocoding operation.
virtual QgsWkbTypes::Type wkbType() const
Returns the WKB type of geometries returned by the geocoder.
virtual Flags flags() const =0
Returns the geocoder's capability flags.
virtual QList< QgsGeocoderResult > geocodeString(const QString &string, const QgsGeocoderContext &context, QgsFeedback *feedback=nullptr) const
Geocodes a string.
virtual QgsFields appendedFields() const
Returns a set of newly created fields which will be appended to existing features during the geocode ...
Represents a matching result from a geocoder search.
A geocoder which uses the Nominatim geocoding API to retrieve results.
double requestsPerSecond() const
Returns the number of requests per seconds to the endpoint.
void setRequestsPerSecond(double number)
Sets the number of request per seconds to the endpoint.
A rectangle specified with double values.
Type
The WKB type describes the number of dimensions a geometry has.