Struct nominatim_rs::lookup::LookupQueryBuilder [−][src]
pub struct LookupQueryBuilder { /* fields omitted */ }
Expand description
Builder for LookupQuery
.
Implementations
osm_ids
is mandatory and must contain a comma-seperated list of
OSM ids each prefixed with its type, on of node(N), way(W) or
relation(R). Up to 50 ids can be queried at the same time.
Include a breakdown of the address into elements. (Default: false)
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>
When a viewbox is given, restrict the result to items contained
within the viewbox (see above). When viewbox
and bounded = true
are given, an amenity only search is allowed. Give the special keyword
for the amenity in square brackets, e.g. [pub]
and a selection of
objects of this type is returned. There is no guarantee that the result
is complete. (Default: 0)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LookupQueryBuilder
impl Send for LookupQueryBuilder
impl Sync for LookupQueryBuilder
impl Unpin for LookupQueryBuilder
impl UnwindSafe for LookupQueryBuilder
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