MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / set_turn

Method set_turn

src/engine/plugins/tile.cpp:411–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
424void encodeVectorTile(const DataFacadeBase &facade,

Callers 1

encodeVectorTileFunction · 0.80

Calls 4

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected