1use crate::{CityModel, Error, Result};
2
3pub fn cleanup(model: &CityModel) -> Result<CityModel> {
4 cityjson_json::cleanup(model).map_err(Error::from)
5}
6
7pub fn extract<'a, I>(model: &CityModel, cityobject_ids: I) -> Result<CityModel>
8where
9 I: IntoIterator<Item = &'a str>,
10{
11 cityjson_json::extract(model, cityobject_ids).map_err(Error::from)
12}
13
14pub fn append(target: &mut CityModel, source: &CityModel) -> Result<()> {
15 cityjson_json::append(target, source).map_err(Error::from)
16}
17
18pub fn merge<I>(models: I) -> Result<CityModel>
19where
20 I: IntoIterator<Item = CityModel>,
21{
22 cityjson_json::merge(models).map_err(Error::from)
23}