google_maps 3.9.5

An unofficial Google Maps Platform client library for the Rust programming language.
Documentation
impl crate::roads::snap_to_roads::Request<'_> {
    /// Whether to interpolate a path to include all points forming the full
    /// road-geometry.
    ///
    /// ## Arguments
    ///
    /// * `interpolate` ‧ When `true`, additional interpolated points will also
    ///   be returned, resulting in a path that smoothly follows the geometry of
    ///   the road, even around corners and through tunnels. Interpolated paths
    ///   will most likely contain more points than the original path. Defaults
    ///   to `false`.
    ///
    /// ## Example
    ///
    /// * Turn on interpolation:
    /// ```rust
    /// .with_interpolation(true)
    /// ```
    #[must_use] pub fn with_interpolation(
        mut self,
        interpolate: impl Into<bool>
    ) -> Self {
        // Set language in Request struct.
        self.interpolate = Some(interpolate.into());
        // Return modified Request struct to caller.
        self
    } // fn
} // impl