| 409 | void set_weight(float value) { add_property(m_layer.key_weight, m_layer.float_index(value)); } |
| 410 | |
| 411 | void set_turn(osrm::guidance::TurnInstruction value) |
| 412 | { |
| 413 | const auto type = osrm::guidance::internalInstructionTypeToString(value.type); |
| 414 | const auto modifier = osrm::guidance::instructionModifierToString(value.direction_modifier); |
| 415 | add_property( |
| 416 | m_layer.key_turn_type, |
| 417 | m_layer.string_index(vtzero::encoded_property_value{type.data(), type.size()})); |
| 418 | add_property( |
| 419 | m_layer.key_turn_modifier, |
| 420 | m_layer.string_index(vtzero::encoded_property_value{modifier.data(), modifier.size()})); |
| 421 | } |
| 422 | }; // class TurnsLayerFeatureBuilder |
| 423 | |
| 424 | void encodeVectorTile(const DataFacadeBase &facade, |
no test coverage detected