Skip to main content

Overpass

Trait Overpass 

Source
pub trait Overpass {
    // Required method
    fn evaluate(
        &self,
        query: &Query<'_>,
    ) -> impl Future<Output = Result<OverpassResult, OverpassError>> + Send;
}
Expand description

Can retrieve Element data from OpenStreetMap that matches the provided Query set.

Required Methods§

Source

fn evaluate( &self, query: &Query<'_>, ) -> impl Future<Output = Result<OverpassResult, OverpassError>> + Send

An async method that evaluates a Query against the map database and returns the resulting Elements.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§