cesium-native 0.44.2
|
A single feature (a location or region) obtained from a geocoder service. More...
#include <CesiumIonClient/Geocoder.h>
Public Member Functions | |
CesiumGeospatial::GlobeRectangle | getGlobeRectangle () const |
Returns a CesiumGeospatial::GlobeRectangle representing this feature. | |
CesiumGeospatial::Cartographic | getCartographic () const |
Returns a CesiumGeospatial::Cartographic representing this feature. | |
Public Attributes | |
std::string | displayName |
The user-friendly display name of this feature. | |
std::variant< CesiumGeospatial::GlobeRectangle, CesiumGeospatial::Cartographic > | destination |
The region on the globe for this feature. | |
A single feature (a location or region) obtained from a geocoder service.
Definition at line 56 of file Geocoder.h.
CesiumGeospatial::Cartographic CesiumIonClient::GeocoderFeature::getCartographic | ( | ) | const |
Returns a CesiumGeospatial::Cartographic
representing this feature.
If the geocoder service returned a bounding box for this result, this will return the center of the bounding box. If the geocoder service returned a coordinate for this result, this will return the coordinate.
CesiumGeospatial::GlobeRectangle CesiumIonClient::GeocoderFeature::getGlobeRectangle | ( | ) | const |
Returns a CesiumGeospatial::GlobeRectangle
representing this feature.
If the geocoder service returned a bounding box for this result, this will return the bounding box. If the geocoder service returned a coordinate for this result, this will return a zero-width rectangle at that coordinate.
std::variant<CesiumGeospatial::GlobeRectangle, CesiumGeospatial::Cartographic> CesiumIonClient::GeocoderFeature::destination |
The region on the globe for this feature.
Definition at line 66 of file Geocoder.h.
std::string CesiumIonClient::GeocoderFeature::displayName |
The user-friendly display name of this feature.
Definition at line 60 of file Geocoder.h.