pub struct OSMGeoMapper {
pub data_structure: GeoTilesDataStructure,
pub coordinates: Coordinate<i32>,
pub radius: u32,
}
Fields§
§data_structure: GeoTilesDataStructure
§coordinates: Coordinate<i32>
§radius: u32
Implementations§
Source§impl OSMGeoMapper
impl OSMGeoMapper
pub fn from_geojson_file_with_radius( geojson_file: String, radius: u32, location: Option<Location>, ) -> Result<OSMGeoMapper, Box<dyn Error>>
pub fn from_geojson_file( geojson_file: String, location: Option<Location>, ) -> Result<OSMGeoMapper, Box<dyn Error>>
pub fn from_osm_file( osm_file: String, location: Option<Location>, ) -> Result<OSMGeoMapper, Box<dyn Error>>
pub fn from_pbf_file( pbf_file: String, location: Option<Location>, ) -> Result<OSMGeoMapper, Box<dyn Error>>
pub fn from_address( address: String, radius: Option<u32>, ) -> Result<OSMGeoMapper, Box<dyn Error>>
pub fn from_lat_lon( latitude: f64, longitude: f64, radius: Option<u32>, ) -> Result<OSMGeoMapper, Box<dyn Error>>
pub fn load_more_from_lat_lon( &mut self, latitude: f64, longitude: f64, radius: Option<u32>, ) -> Result<(), Box<dyn Error>>
pub fn load_more_from_address( &mut self, address: String, radius: Option<u32>, ) -> Result<(), Box<dyn Error>>
pub fn load_more_from_geojson_file( &mut self, geojson_file: String, ) -> Result<(), Box<dyn Error>>
pub fn load_more_from_osm_file( &mut self, osm_file: String, ) -> Result<(), Box<dyn Error>>
pub fn load_more_from_pbf_file( &mut self, pbf_file: String, ) -> Result<(), Box<dyn Error>>
pub fn get(&self, lat: i32, lon: i32) -> Option<Vec<Arc<GeoTile>>>
pub fn get_real(&self, lat: f64, lon: f64) -> Option<Vec<Arc<GeoTile>>>
pub fn atomic_clone(&self) -> OSMGeoMapper
Trait Implementations§
Source§impl Clone for OSMGeoMapper
impl Clone for OSMGeoMapper
Source§fn clone(&self) -> OSMGeoMapper
fn clone(&self) -> OSMGeoMapper
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for OSMGeoMapper
impl RefUnwindSafe for OSMGeoMapper
impl Send for OSMGeoMapper
impl Sync for OSMGeoMapper
impl Unpin for OSMGeoMapper
impl UnwindSafe for OSMGeoMapper
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