Skip to content

Commit

Permalink
linkId
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Jäger committed Aug 19, 2024
1 parent 7456cce commit 41d0be4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/navteq/converter/HouseNumberConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ void HouseNumberConverter::create_house_numbers(
if (!strcmp(get_field_from_feature(feat, addr_schema), "M"))
return;

uint64_t linkId = get_uint_from_feature(feat, LINK_ID);

std::string startNumber =
get_field_from_feature(feat, left ? ref_addr : nref_addr);

Expand All @@ -203,6 +205,7 @@ void HouseNumberConverter::create_house_numbers(
{
// scope tl_builder
osmium::builder::TagListBuilder tl_builder(node_builder);
tl_builder.add_tag(LINK_ID.data(), std::to_string(linkId));
tl_builder.add_tag("addr:housenumber", startNumber);
tl_builder.add_tag(
"addr:street",
Expand Down Expand Up @@ -237,6 +240,7 @@ void HouseNumberConverter::create_house_numbers(
tl_builder.add_tag("addr:street",
to_camel_case_with_spaces(
get_field_from_feature(feat, ST_NAME)));
tl_builder.add_tag(LINK_ID.data(), std::to_string(linkId));
}
}

Expand All @@ -250,6 +254,7 @@ void HouseNumberConverter::create_house_numbers(
const char *schema =
parse_house_number_schema(get_field_from_feature(feat, addr_schema));
tl_builder.add_tag("addr:interpolation", schema);
tl_builder.add_tag(LINK_ID.data(), std::to_string(linkId));
}
}
node_buffer.commit();
Expand Down

0 comments on commit 41d0be4

Please sign in to comment.