Struct navitia_poi_model::objects::Model [−][src]
Expand description
A data structure used for exporting and importing data to and from file.
Fields
pois: BTreeMap<String, Poi>
A list of POIs.
Could have been a hashmap…
poi_types: HashMap<String, PoiType>
A map of PoiType, indexed by their id.
We use a hashmap to list poi types, as the main purpose is to search for a PoiType based on its id. (Poi only stores the type’s id)
Implementations
Creates a new model based on data found in path
.