We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e68f20 commit b2b836cCopy full SHA for b2b836c
importer/src/hierarchyitem.cpp
@@ -1,4 +1,5 @@
1
#include "hierarchyitem.h"
2
+#include "postal.h"
3
#include "utils.h"
4
5
#include <boost/algorithm/string/trim.hpp>
@@ -20,7 +21,7 @@ HierarchyItem::HierarchyItem(const pqxx::row &row)
20
21
m_country = row["country_code"].as<std::string>("");
22
m_type = geocoder_type(row["class"].as<std::string>(""), row["type"].as<std::string>(""));
23
m_housenumber = row["housenumber"].as<std::string>("");
- m_postcode = row["postcode"].as<std::string>("");
24
+ m_postcode = GeoNLP::Postal::normalize_postalcode(row["postcode"].as<std::string>(""));
25
m_latitude = row["latitude"].as<float>(0);
26
m_longitude = row["longitude"].as<float>(0);
27
m_osm_id = row["osm_id"].as<uint64_t>(0);
0 commit comments