Struct nominatim_rs::search::SearchQuery
source · pub struct SearchQuery {
pub location_query: LocationQuery,
pub address_details: bool,
pub extra_tags: bool,
pub name_details: bool,
pub accept_language: Option<Vec<String>>,
pub country_codes: Option<Vec<String>>,
pub exclude_place_ids: Option<Vec<u64>>,
pub limit: Option<u8>,
pub viewbox: Option<[f64; 4]>,
pub dedupe: bool,
}
Fields§
§location_query: LocationQuery
§address_details: bool
Include a breakdown of the address into elements
Include additional information if the result is available
name_details: bool
Include a list of alternative names in the results. This may include language variants, references, operator and brand.
accept_language: Option<Vec<String>>
Preferred language order for showing search results, overrides the value specified in the “Accept-Languague” HTTP header. Either use a standard RFC2616 accept-language string or a simple comma-separated list of language codes.
country_codes: Option<Vec<String>>
Include addition information if the result is available
Limit search results to one of more countries. The country code must
be the
ISO-3166-1alpha2
code, e.g. gb
for the United Kingdom, de
for Germany.
Each place in Nominatim is assigned to one country code based of OSM country borders. In rare cases a place may not be in any country at all, for example, in international waters.
exclude_place_ids: Option<Vec<u64>>
If you do not want certain OSM objects to appear in the search
result, give a comma separated list of the place_id
s you want to
skip. This can be used to retrieve additional search results.
For example, if a previous query only returned a few results, then
including those here would cause the search to return other, less
accurate, matches (if possible.)
limit: Option<u8>
Limits the number of returned results. (Default: 10, Maximum: 50.)
viewbox: Option<[f64; 4]>
The preferred area to find search results. Any two corner points of the box are accepted as long as they span a real box.
viewbox=<x1>,<y1>,<x2>,<y2>
dedupe: bool
Sometimes you have several objects in OSM identifying the same place
or object in reality. The simplest case is a street being split into
many different OSM ways due to different characteristics. Nominatim
will attempt to detect such duplicates and only return on match
unless this parameter is set to false
. (Default: true
),
Trait Implementations§
source§impl Clone for SearchQuery
impl Clone for SearchQuery
source§fn clone(&self) -> SearchQuery
fn clone(&self) -> SearchQuery
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more