forked from mapsme/omim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"disabled": { | ||
"countries": [], | ||
"mwms": [] | ||
}, | ||
"enabled": { | ||
"countries": [ | ||
{ | ||
"cities": [ | ||
"Accra" | ||
], | ||
"id": "Ghana" | ||
}, | ||
{ | ||
"cities": [ | ||
"Abidjan" | ||
], | ||
"id": "Cote dIvoire" | ||
}, | ||
{ | ||
"cities": [ | ||
"Bucharest" | ||
], | ||
"id": "Romania" | ||
}, | ||
{ | ||
"cities": [ | ||
"Helsinki" | ||
], | ||
"id": "Finland" | ||
}, | ||
{ | ||
"cities": [ | ||
"Haifa", | ||
"Ashkelon", | ||
"Be'er Sheva", | ||
"Tel Aviv-Yafo" | ||
], | ||
"id": "Israel Region" | ||
} | ||
], | ||
"mwms": [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "partners_api/yango_api.hpp" | ||
|
||
namespace taxi::yango | ||
{ | ||
RideRequestLinks Api::GetRideRequestLinks(std::string const & productId, ms::LatLon const & from, | ||
ms::LatLon const & to) const | ||
{ | ||
std::ostringstream link; | ||
|
||
link << "https://2187871.redirect.appmetrica.yandex.com/route?start-lat=" << from.m_lat | ||
<< "&start-lon=" << from.m_lon << "&end-lat=" << to.m_lat << "&end-lon=" << to.m_lon | ||
<< "&utm_source=mapsme&utm_medium=none&ref=8d20bf0f9e4749c48822358cdaf6a6c7" | ||
"&appmetrica_tracking_id=1179283486394045767&level=50"; | ||
|
||
return {link.str(), link.str()};; | ||
} | ||
} // namespace taxi::yango |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include "partners_api/taxi_base.hpp" | ||
#include "partners_api/yandex_api.hpp" | ||
|
||
namespace taxi::yango | ||
{ | ||
class Api : public yandex::Api | ||
{ | ||
public: | ||
explicit Api(std::string const & baseUrl = yandex::kTaxiInfoUrl) : yandex::Api(baseUrl) {} | ||
|
||
/// Returns link which allows you to launch the Yandex app. | ||
RideRequestLinks GetRideRequestLinks(std::string const & productId, ms::LatLon const & from, | ||
ms::LatLon const & to) const override; | ||
}; | ||
} // namespace taxi::yango |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters