cesium-native 0.44.2
Loading...
Searching...
No Matches
CesiumIonClient::GeocoderFeature Struct Reference

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::Cartographicdestination
 The region on the globe for this feature.
 

Detailed Description

A single feature (a location or region) obtained from a geocoder service.

Definition at line 56 of file Geocoder.h.

Member Function Documentation

◆ getCartographic()

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.

◆ getGlobeRectangle()

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.

Member Data Documentation

◆ destination

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.

◆ displayName

std::string CesiumIonClient::GeocoderFeature::displayName

The user-friendly display name of this feature.

Definition at line 60 of file Geocoder.h.


The documentation for this struct was generated from the following file: