forked from organicmaps/organicmaps
viator link fix
This commit is contained in:
parent
cb41d042c4
commit
e566b9df54
2 changed files with 4 additions and 4 deletions
|
@ -197,13 +197,13 @@ bool RawApi::GetTopProducts(std::string const & destId, std::string const & curr
|
|||
}
|
||||
|
||||
// static
|
||||
std::string Api::GetCityUrl(std::string const & destId, std::string const & name)
|
||||
std::string Api::GetCityUrl(std::string const & destId)
|
||||
{
|
||||
std::ostringstream ost;
|
||||
// The final language and city name will be calculated automatically based on account id and
|
||||
// destination id.
|
||||
ost << kWebUrl << "/" << languages::GetCurrentNorm() << "/" << GetAccountId() << "/"
|
||||
<< UrlEncode(name) << "/d" << destId << "-ttd?activities=all";
|
||||
ost << kWebUrl << "/" << languages::GetCurrentNorm() << "/" << GetAccountId() << "/x/d" << destId
|
||||
<< "-ttd?activities=all";
|
||||
return ost.str();
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ class Api
|
|||
{
|
||||
public:
|
||||
/// Returns web page address for specified city id.
|
||||
static std::string GetCityUrl(std::string const & destId, std::string const & name);
|
||||
static std::string GetCityUrl(std::string const & destId);
|
||||
|
||||
/// Returns top-5 products for specified city id.
|
||||
/// @currency - currency of the price, if empty then USD will be used.
|
||||
|
|
Loading…
Add table
Reference in a new issue