| 56 | uint32_t GetIndex() const { return m_feature->GetID().m_index; } |
| 57 | |
| 58 | bp::list GetTypes() |
| 59 | { |
| 60 | bp::list types; |
| 61 | m_feature->ForEachType([&](auto t) |
| 62 | { |
| 63 | // A type can be invalid because the type was marked as deprecated in mapcss file. |
| 64 | types.append(classif().IsTypeValid(t) ? classif().GetIndexForType(t) : kInvalidIndex); |
| 65 | }); |
| 66 | return types; |
| 67 | } |
| 68 | |
| 69 | bp::dict GetMetadata() |
| 70 | { |