16#ifndef QGSNOMINATIMGEOCODER_H
17#define QGSNOMINATIMGEOCODER_H
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;
WkbType
The WKB type describes the number of dimensions a geometry has.
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 Flags flags() const =0
Returns the geocoder's capability flags.
virtual Qgis::WkbType wkbType() const
Returns the WKB type of geometries returned by the geocoder.
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.
QgsGeocoderResult jsonToResult(const QVariantMap &json) const
Converts a JSON result returned from the Nominatim service to a geocoder result object.
QgsNominatimGeocoder(const QString &countryCodes=QString(), const QString &endpoint=QString())
Constructor for QgsNominatimGeocoder.
QString countryCodes() const
Returns the optional region bias which will be used to prioritize results in a certain region.
QString endpoint() const
Returns the API endpoint used for requests.
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.
void setEndpoint(const QString &endpoint)
Sets a specific API endpoint to use for requests.
QUrl requestUrl(const QString &address, const QgsRectangle &bounds=QgsRectangle()) const
Returns the URL generated for geocoding the specified address.
A rectangle specified with double values.