[generator] Fixed generation of .addr file.

This commit is contained in:
vng 2014-05-28 12:52:55 +03:00 committed by Alex Zolotarev
parent 122c45ec20
commit cace5a3519
2 changed files with 3 additions and 3 deletions

View file

@ -508,6 +508,6 @@ public:
: base_type(emitter, holder), m_coastType(coastType)
{
if (!addrFilePath.empty())
m_addrWriter.reset(new FileWriter(addrFilePath, FileWriter::OP_APPEND));
m_addrWriter.reset(new FileWriter(addrFilePath));
}
};

View file

@ -193,8 +193,8 @@ bool FeatureParams::FormatFullAddress(m2::PointD const & pt, string & res) const
if (!m_street.empty() && !house.IsEmpty())
{
res = m_street + "|" + house.Get() + "|"
+ strings::to_string(MercatorBounds::YToLat(pt.y)) + "|"
+ strings::to_string(MercatorBounds::XToLon(pt.x)) + '\n';
+ strings::to_string_dac(MercatorBounds::YToLat(pt.y), 8) + "|"
+ strings::to_string_dac(MercatorBounds::XToLon(pt.x), 8) + '\n';
return true;
}