Enum nominatim_rs::search::LocationQuery
source · 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§
Generalised
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.
Structured
Fields
Alternative query string format split into several parameters for structured requests. Structured requests are faster but are less robust against alternative OSM tagging schemas.
Trait Implementations§
source§impl Clone for LocationQuery
impl Clone for LocationQuery
source§fn clone(&self) -> LocationQuery
fn clone(&self) -> LocationQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LocationQuery
impl Debug for LocationQuery
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more