cesium-native 0.44.2
Loading...
Searching...
No Matches
Geocoder.h
1#pragma once
2
3#include <CesiumGeospatial/Cartographic.h>
4#include <CesiumGeospatial/GlobeRectangle.h>
5#include <CesiumUtility/Math.h>
6
7#include <string>
8#include <variant>
9#include <vector>
10
11namespace CesiumIonClient {
12
29
51
60 std::string displayName;
61
65 std::variant<CesiumGeospatial::GlobeRectangle, CesiumGeospatial::Cartographic>
67
76
85};
86
94 std::string html;
95
101};
102
110 std::vector<GeocoderAttribution> attributions;
111
115 std::vector<GeocoderFeature> features;
116};
117
118}; // namespace CesiumIonClient
A position defined by longitude, latitude, and height.
A two-dimensional, rectangular region on a globe, specified using longitude and latitude coordinates....
Classes for working with Cesium ion clients.
GeocoderProviderType
The supported providers that can be accessed through ion's geocoder API.
Definition Geocoder.h:34
@ Default
Use the default geocoder as set on the server. Used when neither Bing or Google data is used.
Definition Geocoder.h:49
@ Google
Google geocoder, for use with Google data.
Definition Geocoder.h:38
@ Bing
Bing geocoder, for use with Bing data.
Definition Geocoder.h:43
GeocoderRequestType
The supported types of requests to geocoding API.
Definition Geocoder.h:16
@ Search
Perform a full search from a complete query.
Definition Geocoder.h:20
@ Autocomplete
Perform a quick search based on partial input, such as while a user is typing. The search results may...
Definition Geocoder.h:27
Attribution information for a query to a geocoder service.
Definition Geocoder.h:90
bool showOnScreen
If true, the credit should be visible in the main credit container. Otherwise, it can appear in a pop...
Definition Geocoder.h:100
std::string html
An HTML string containing the necessary attribution information.
Definition Geocoder.h:94
A single feature (a location or region) obtained from a geocoder service.
Definition Geocoder.h:56
CesiumGeospatial::GlobeRectangle getGlobeRectangle() const
Returns a CesiumGeospatial::GlobeRectangle representing this feature.
CesiumGeospatial::Cartographic getCartographic() const
Returns a CesiumGeospatial::Cartographic representing this feature.
std::variant< CesiumGeospatial::GlobeRectangle, CesiumGeospatial::Cartographic > destination
The region on the globe for this feature.
Definition Geocoder.h:66
std::string displayName
The user-friendly display name of this feature.
Definition Geocoder.h:60
The result of making a request to a geocoder service.
Definition Geocoder.h:106
std::vector< GeocoderAttribution > attributions
Any necessary attributions for this geocoder result.
Definition Geocoder.h:110
std::vector< GeocoderFeature > features
The features obtained from this geocoder service, if any.
Definition Geocoder.h:115