Skip to content

Commit

Permalink
core
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshi7190 committed Jan 21, 2025
1 parent c8bc57a commit 50bd2ad
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions nusamai-plateau/src/models/core.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
use nusamai_citygml::citygml_data;
use nusamai_citygml::{citygml_data, CityGmlElement};

#[citygml_data(name = "core:Address")]
#[citygml(allow_extra)]
pub struct Address {
// TODO
#[citygml(path = b"core:xalAddress/xAL:AddressDetails")]
country: Vec<AddressDetail>,
}

#[citygml_data(name = "xAL:AddressDetails")]
#[citygml(allow_extra)]
pub struct AddressDetail {
#[citygml(path = b"xAL:Country")]
country: Country,
}

#[citygml_data(name = "xAL:Country")]
#[citygml(allow_extra)]
pub struct Country {
#[citygml(path = b"xAL:CountryName")]
name: Option<String>,
#[citygml(path = b"xAL:Locality/xAL:LocalityName")]
locality_name: Option<String>,
}

0 comments on commit 50bd2ad

Please sign in to comment.