Skip To Content ArcGIS for Developers Sign In Dashboard

GeocodeResult Class

class Esri::ArcGISRuntime::GeocodeResult

The result class returned from a geocode or reverse geocode operation of a LocatorTask. More...

Header: #include <GeocodeResult>
Since: Esri::ArcGISRuntime 100.0

This class was introduced in Esri::ArcGISRuntime 100.0.

Public Functions

GeocodeResult(Esri::ArcGISRuntime::GeocodeResult &&other)
GeocodeResult(const Esri::ArcGISRuntime::GeocodeResult &other)
Esri::ArcGISRuntime::GeocodeResult &operator=(Esri::ArcGISRuntime::GeocodeResult &&other)
Esri::ArcGISRuntime::GeocodeResult &operator=(const Esri::ArcGISRuntime::GeocodeResult &other)
QVariantMap attributes() const
Esri::ArcGISRuntime::Point displayLocation() const
Esri::ArcGISRuntime::Envelope extent() const
Esri::ArcGISRuntime::Point inputLocation() const
bool isEmpty() const
QString label() const
Esri::ArcGISRuntime::Point routeLocation() const
double score() const

Detailed Description

Geocoding takes an address or place name, and converts it into real-world coordinates. Reverse geocoding does the opposite, and converts real-world coordinates into an address or place name. These operations are available on the LocatorTask class. Obtain this result from the LocatorTask::geocodeCompleted signal.

Member Function Documentation

GeocodeResult::GeocodeResult(Esri::ArcGISRuntime::GeocodeResult &&other)

Move constructor from other GeocodeResult.

GeocodeResult::GeocodeResult(const Esri::ArcGISRuntime::GeocodeResult &other)

Copy constructor from other GeocodeResult.


Default constructor.

Esri::ArcGISRuntime::GeocodeResult &GeocodeResult::operator=(Esri::ArcGISRuntime::GeocodeResult &&other)

Move operator from other GeocodeResult.

Esri::ArcGISRuntime::GeocodeResult &GeocodeResult::operator=(const Esri::ArcGISRuntime::GeocodeResult &other)

Assignment operator from other GeocodeResult.



QVariantMap GeocodeResult::attributes() const

Returns the attributes of the GeocodeResult.

These attributes can be defined in GeocodeParameters::setResultAttributeNames.

Esri::ArcGISRuntime::Point GeocodeResult::displayLocation() const

Returns the display location of the GeocodeResult.

For example, if searching for a park, the returned point would be near the center of the park.

Esri::ArcGISRuntime::Envelope GeocodeResult::extent() const

Returns the extent of the GeocodeResult.

The extent can be used for setting the viewpoint of the map view to the geocode result.

Esri::ArcGISRuntime::Point GeocodeResult::inputLocation() const

Returns the input location of the GeocodeResult.

Note: Input location only applies if the result is from a reverse geocode.

bool GeocodeResult::isEmpty() const

Returns whether this GeocodeResult is empty.

QString GeocodeResult::label() const

Returns the label of the GeocodeResult.

Esri::ArcGISRuntime::Point GeocodeResult::routeLocation() const

Returns the route location of the GeocodeResult.

For example, if searching for a park, the returned point would be near the entrance point to the park.

double GeocodeResult::score() const

Returns the score of the GeocodeResult.

See also GeocodeParameters::minScore.

Feedback on this topic?