[][src]Struct geocoding::openstreetmap::OpenstreetmapParams

pub struct OpenstreetmapParams<'a, T> where
    T: Float
{ /* fields omitted */ }

An instance of a parameter builder for Openstreetmap geocoding

Implementations

impl<'a, T> OpenstreetmapParams<'a, T> where
    T: Float
[src]

pub fn new(query: &'a str) -> OpenstreetmapParams<'a, T>[src]

Create a new OpenStreetMap parameter builder

Example:

use geocoding::{Openstreetmap, InputBounds, Point};
use geocoding::openstreetmap::{OpenstreetmapParams};

let viewbox = InputBounds::new(
    (-0.13806939125061035, 51.51989264641164),
    (-0.13427138328552246, 51.52319711775629),
);
let params = OpenstreetmapParams::new(&"UCL CASA")
    .with_addressdetails(true)
    .with_viewbox(&viewbox)
    .build();

pub fn with_addressdetails(&mut self, addressdetails: bool) -> &mut Self[src]

Set the addressdetails property

pub fn with_viewbox(&mut self, viewbox: &'a InputBounds<T>) -> &mut Self[src]

Set the viewbox property

pub fn build(&self) -> OpenstreetmapParams<'a, T>[src]

Build and return an instance of OpenstreetmapParams

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for OpenstreetmapParams<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for OpenstreetmapParams<'a, T> where
    T: Sync

impl<'a, T> Sync for OpenstreetmapParams<'a, T> where
    T: Sync

impl<'a, T> Unpin for OpenstreetmapParams<'a, T>

impl<'a, T> UnwindSafe for OpenstreetmapParams<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.