MCPcopy Create free account
hub / github.com/comaps/comaps / GetReadableAddress

Function GetReadableAddress

libs/indexer/feature_utils.cpp:183–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183string const GetReadableAddress(string const & address)
184{
185 // Instead of housenumber range strings like 123:456, hyphenate like 123 - 456
186 string out = address;
187 size_t pos = 0;
188 while ((pos = out.find(":", pos)) != string::npos)
189 {
190 out.replace(pos, 1, "\u2009\u2013\u2009"); // thin space + en-dash + thin space
191 break;
192 }
193 return out;
194}
195
196/*
197int8_t GetNameForSearchOnBooking(RegionData const & regionData, StringUtf8Multilang const & src, string & name)

Callers 3

FormatStreetAndHouseFunction · 0.85
LoadFeatureMethod · 0.85
SetFromFeatureTypeMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected