21 result.mIsValid =
false;
22 result.mErrorString = errorMessage;
Represents a coordinate reference system (CRS).
QString description() const
Returns the optional description for the result.
QString group() const
Returns the optional group value for the result.
QgsGeocoderResult(const QString &identifier, const QgsGeometry &geometry, const QgsCoordinateReferenceSystem &crs)
Constructor for a valid QgsGeocoderResult, with the specified geometry and crs.
QString identifier() const
Returns the identifier string for the result.
void setDescription(const QString &description)
Sets an optional description for the result.
QgsCoordinateReferenceSystem crs() const
Returns the coordinate reference system for the calculated geometry().
void setGroup(const QString &group)
Sets the optional group value for the result.
QgsGeometry geometry() const
Returns the resultant geometry resulting from the geocoding operation.
static QgsGeocoderResult errorResult(const QString &errorMessage)
Creates an invalid error result, with the specified errorMessage string.
A geometry is the spatial representation of a feature.