Skip to content

Commit

Permalink
fix #5204
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Feb 18, 2019
1 parent 5c1bafc commit 2bba117
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/netwrite/NWWriter_DlrNavteq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ NWWriter_DlrNavteq::writeLinksUnsplitted(const OptionsCont& oc, NBEdgeCont& ec,
std::string nameID = UNDEFINED;
if (oc.getBool("output.street-names")) {
const std::string& name = i->second->getStreetName();
if (name != "" && nameIDs.count(name) == 0) {
nameID = toString(nameIDs.size());
nameIDs[name] = nameID;
if (name != "") {
if (nameIDs.count(name) == 0) {
nameIDs[name] = toString(nameIDs.size());
}
nameID = nameIDs[name];
}
}
device << e->getID() << "\t"
Expand All @@ -224,8 +226,8 @@ NWWriter_DlrNavteq::writeLinksUnsplitted(const OptionsCont& oc, NBEdgeCont& ec,
<< getNavteqLaneCode(e->getNumLanes()) << "\t"
<< getSpeedCategoryUpperBound(kph) << "\t"
<< kph << "\t"
<< nameID << "\t" // NAME_ID1_REGIONAL XXX
<< UNDEFINED << "\t" // NAME_ID2_LOCAL XXX
<< UNDEFINED << "\t" // NAME_ID1_REGIONAL XXX
<< nameID << "\t" // NAME_ID2_LOCAL
<< UNDEFINED << "\t" // housenumbers_right
<< UNDEFINED << "\t" // housenumbers_left
<< getSinglePostalCode(e->getParameter("postal_code", UNDEFINED), e->getID()) << "\t" // ZIP_CODE
Expand Down

0 comments on commit 2bba117

Please sign in to comment.