Skip to content

Commit

Permalink
If street name is empty put settlement name instead
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKarlas committed Mar 11, 2024
1 parent 52baf09 commit f953453
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OsmGursBuildingImport/GursData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ void LoadAddresses(string dir)
var streetName = new BilingualName(OverrideString(streetNameOverride, csvAddresses.GetString("ULICA_NAZIV")), OverrideString(streetNameSecondaryLanguageOverride, csvAddresses.GetString("ULICA_NAZIV_DJ")));
var postInfo = new PostInfo(csvAddresses.GetInt16("POSTNI_OKOLIS_SIFRA"), new BilingualName(OverrideString(postalNameOverride, csvAddresses.GetString("POSTNI_OKOLIS_NAZIV")), csvAddresses.GetString("POSTNI_OKOLIS_NAZIV_DJ")));
var villageName = new BilingualName(OverrideString(settlementNameOverride, csvAddresses.GetString("NASELJE_NAZIV")), csvAddresses.GetString("NASELJE_NAZIV_DJ"));
if (streetName.Name == "")
streetName = villageName;
var address = new Address(id, geom, null, houseNumber, streetName, postInfo, villageName);
Addresses.Add(id, address);
if (BuildingToAddresses.TryGetValue(buildingId, out var list))
Expand Down

0 comments on commit f953453

Please sign in to comment.