pub struct ForwardFilter {
    pub location_bias: Option<LatLon>,
    pub location_bias_zoom: Option<u64>,
    pub location_bias_scale: Option<f64>,
    pub bounding_box: Option<BoundingBox>,
    pub limit: Option<u64>,
    pub lang: Option<String>,
    pub layer: Option<Vec<PhotonLayer>>,
    pub additional_query: Option<Vec<(String, String)>>,
}
Expand description

Filtering options for forward searches. This struct implements a builder pattern, so filters can be easily constructed.

Fields

location_bias: Option<LatLon>location_bias_zoom: Option<u64>location_bias_scale: Option<f64>bounding_box: Option<BoundingBox>limit: Option<u64>lang: Option<String>layer: Option<Vec<PhotonLayer>>additional_query: Option<Vec<(String, String)>>

Implementations

Construct a new ForwardFilter. All fields are set to None in the beginning.

Concentrate the search around a specific coordinate.

zoom describes the radius around the coordinate to focus on. scale describes how much the prominence of a result should still be taken into account. See Photon documentation for details

Concentrate the search in a specific rectangular area.

Limit the number of search results.

Return results in a specific language. Photon currently supports DE, EN and FR. Defaults to the local language of a search result.

Filter results by layer. See Photon documentation

Add additional query strings to the request. Example: Filtering by tags and values

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more