aws_sdk_geoplaces/client/reverse_geocode.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`ReverseGeocode`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`query_position(f64)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::query_position) / [`set_query_position(Option<Vec::<f64>>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::set_query_position):<br>required: **true**<br><p>The position, in <code>\[lng, lat\]</code> for which you are querying nearby results for. Results closer to the position will be ranked higher then results further away from the position</p><br>
7 /// - [`query_radius(i64)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::query_radius) / [`set_query_radius(Option<i64>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::set_query_radius):<br>required: **false**<br><p>The maximum distance in meters from the QueryPosition from which a result will be returned.</p><br>
8 /// - [`max_results(i32)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::set_max_results):<br>required: **false**<br><p>An optional limit for the number of results returned in a single call.</p><br>
9 /// - [`filter(ReverseGeocodeFilter)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::filter) / [`set_filter(Option<ReverseGeocodeFilter>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::set_filter):<br>required: **false**<br><p>A structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.</p><br>
10 /// - [`additional_features(ReverseGeocodeAdditionalFeature)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::additional_features) / [`set_additional_features(Option<Vec::<ReverseGeocodeAdditionalFeature>>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::set_additional_features):<br>required: **false**<br><p>A list of optional additional parameters, such as time zone that can be requested for each result.</p><br>
11 /// - [`language(impl Into<String>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::language) / [`set_language(Option<String>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::set_language):<br>required: **false**<br><p>A list of <a href="https://en.wikipedia.org/wiki/IETF_language_tag">BCP 47</a> compliant language codes for the results to be rendered in. If there is no data for the result in the requested language, data will be returned in the default language for the entry.</p><br>
12 /// - [`political_view(impl Into<String>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::political_view) / [`set_political_view(Option<String>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::set_political_view):<br>required: **false**<br><p>The alpha-2 or alpha-3 character code for the political view of a country. The political view applies to the results of the request to represent unresolved territorial claims through the point of view of the specified country.</p><br>
13 /// - [`intended_use(ReverseGeocodeIntendedUse)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::intended_use) / [`set_intended_use(Option<ReverseGeocodeIntendedUse>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::set_intended_use):<br>required: **false**<br><p>Indicates if the results will be stored. Defaults to <code>SingleUse</code>, if left empty.</p><note> <p>Storing the response of an ReverseGeocode query is required to comply with service terms, but charged at a higher cost per request. Please review the <a href="https://aws.amazon.com/location/sla/">user agreement</a> and <a href="https://aws.amazon.com/location/pricing/">service pricing structure</a> to determine the correct setting for your use case.</p> </note><br>
14 /// - [`key(impl Into<String>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::key) / [`set_key(Option<String>)`](crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::set_key):<br>required: **false**<br><p>Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.</p><br>
15 /// - On success, responds with [`ReverseGeocodeOutput`](crate::operation::reverse_geocode::ReverseGeocodeOutput) with field(s):
16 /// - [`pricing_bucket(String)`](crate::operation::reverse_geocode::ReverseGeocodeOutput::pricing_bucket): <p>The pricing bucket for which the query is charged at.</p> <p>For more information on pricing, please visit <a href="https://aws.amazon.com/location/pricing/">Amazon Location Service Pricing</a>.</p>
17 /// - [`result_items(Option<Vec::<ReverseGeocodeResultItem>>)`](crate::operation::reverse_geocode::ReverseGeocodeOutput::result_items): <p>List of places or results returned for a query.</p>
18 /// - On failure, responds with [`SdkError<ReverseGeocodeError>`](crate::operation::reverse_geocode::ReverseGeocodeError)
19 pub fn reverse_geocode(&self) -> crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder {
20 crate::operation::reverse_geocode::builders::ReverseGeocodeFluentBuilder::new(self.handle.clone())
21 }
22}