Struct nominatim_rs::search::SearchQueryBuilder [−][src]
pub struct SearchQueryBuilder { /* fields omitted */ }
Expand description
Builder for SearchQuery
.
Implementations
Include a breakdown of the address into elements
Include additional information if the result is available
Include a list of alternative names in the results. This may include language variants, references, operator and brand.
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.
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.
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.)
Limits the number of returned results. (Default: 10, Maximum: 50.)
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>
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
Auto Trait Implementations
impl RefUnwindSafe for SearchQueryBuilder
impl Send for SearchQueryBuilder
impl Sync for SearchQueryBuilder
impl Unpin for SearchQueryBuilder
impl UnwindSafe for SearchQueryBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
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