pub struct Match {
pub type: Type,
pub tokens: Vec<Vec<f64>>,
pub name: String,
pub id: String,
pub lat: f64,
pub lon: f64,
pub level: Option<f64>,
pub street: Option<String>,
pub house_number: Option<String>,
pub zip: Option<String>,
pub areas: Vec<Area>,
pub score: f64,
}
Expand description
Match : GeoCoding match
Fields§
§type: Type
location type
tokens: Vec<Vec<f64>>
list of non-overlapping tokens that were matched
name: String
name of the location (transit stop / PoI / address)
id: String
unique ID of the location
lat: f64
latitude
lon: f64
longitude
level: Option<f64>
level according to OpenStreetMap (at the moment only for public transport)
street: Option<String>
street name
house_number: Option<String>
house number
zip: Option<String>
zip code
areas: Vec<Area>
list of areas
score: f64
score according to the internal scoring system (the scoring algorithm might change in the future)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Match
impl<'de> Deserialize<'de> for Match
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Match
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnwindSafe for Match
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