Enum nominatim_rs::search::LocationQuery [−][src]
pub enum LocationQuery {
Generalised {
q: String,
},
Structured {
street: Option<Street>,
city: Option<String>,
county: Option<String>,
state: Option<String>,
country: Option<String>,
postal_code: Option<String>,
},
}
Expand description
Represents the different types of way that nominatim can request for a location.
Variants
Free-form query string to search for. Free-form queries are
processed first left-to-right and then right-to-left if that fails.
So you may search for pilkington avenue, birmingham
as well as
for birmingham, pikington avenue
. Commas are optional but
improve performance by reducing the complexity of the search.
Fields of Generalised
q: String
Alternative query string format split into several parameters for structured requests. Structured requests are faster but are less robust against alternative OSM tagging schemas.
Fields of Structured
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LocationQuery
impl Send for LocationQuery
impl Sync for LocationQuery
impl Unpin for LocationQuery
impl UnwindSafe for LocationQuery
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