28using namespace Qt::StringLiterals;
32QgsBatchNominatimGeocodeAlgorithm::QgsBatchNominatimGeocodeAlgorithm()
37QString QgsBatchNominatimGeocodeAlgorithm::name()
const
39 return u
"batchnominatimgeocoder"_s;
42QString QgsBatchNominatimGeocodeAlgorithm::displayName()
const
44 return QObject::tr(
"Batch Nominatim geocoder" );
47QStringList QgsBatchNominatimGeocodeAlgorithm::tags()
const
49 return QObject::tr(
"geocode,nominatim,batch,bulk,address,match" ).split(
',' );
58QgsBatchNominatimGeocodeAlgorithm *QgsBatchNominatimGeocodeAlgorithm::createInstance()
const
60 return new QgsBatchNominatimGeocodeAlgorithm();
63QString QgsBatchNominatimGeocodeAlgorithm::shortHelpString()
const
65 return QObject::tr(
"This algorithm performs batch geocoding using the <a href=\"https://nominatim.qgis.org/\">Nominatim</a> service against an input layer string field.\n\n"
66 "The output layer will have a point geometry reflecting the geocoded location as well as a number of attributes associated to the geocoded location." );
69QString QgsBatchNominatimGeocodeAlgorithm::shortDescription()
const
71 return QObject::tr(
"Geocodes features in a vector layer using the Nominatim service." );
76 feedback->
pushInfo( QObject::tr(
"The Nominatim geocoder data is made available by OpenStreetMap Foundation and contributors. "
77 "It is provided under the ODbL license which requires to share alike. Visit https://nominatim.org/ to learn more." ) );
A base class for batch geocoder algorithms, which takes a QgsGeocoderInterface object and exposes it ...
bool prepareAlgorithm(const QVariantMap ¶meters, QgsProcessingContext &context, QgsProcessingFeedback *feedback) override
Prepares the algorithm to run using the specified parameters.
Represents a coordinate reference system (CRS).
bool isValid() const
Returns whether this CRS is correctly initialized and usable.
Contains information about the context in which a processing algorithm is executed.
Base class for providing feedback from a processing algorithm.
virtual void pushInfo(const QString &info)
Pushes a general informational message from the algorithm.