[−][src]Struct importer::generic::GenericCityImporter
Importing a new city can be done just by filling out this config file and specifying some
polygon boundaries. Most fields are directly from convert_osm::Options
.
If any extra data is imported for a city (like collisions or population), then for now, don't use this.
Fields
osm_url: String
The URL to a .osm or .osm.pbf file containing the entire city. http://download.geofabrik.de/ is recommended.
You can also put a path like input/seattle/osm/washington-latest.osm.pbf
in here,
and instead that file will be used. This is kind of a hack, because it'll assume the cities
are imported in the proper order, but it prevents having to download duplicate large files.
map_config: MapConfig
onstreet_parking: OnstreetParking
public_offstreet_parking: PublicOffstreetParking
private_offstreet_parking: PrivateOffstreetParking
elevation: Option<String>
If provided, pull elevation data from this SRTM file. The SRTM parser is incorrect, so the results will be nonsense.
include_railroads: bool
OSM railway=rail will be included as light rail if so. Cosmetic only.
Implementations
impl GenericCityImporter
[src]
pub fn osm_to_raw(
&self,
name: MapName,
timer: &mut Timer<'_>,
config: &ImporterConfiguration
) -> RawMap
[src]
&self,
name: MapName,
timer: &mut Timer<'_>,
config: &ImporterConfiguration
) -> RawMap
Trait Implementations
impl<'de> Deserialize<'de> for GenericCityImporter
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for GenericCityImporter
[src]
Auto Trait Implementations
impl RefUnwindSafe for GenericCityImporter
impl Send for GenericCityImporter
impl Sync for GenericCityImporter
impl Unpin for GenericCityImporter
impl UnwindSafe for GenericCityImporter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,