blob: 3bd928e78de05c61c1b733814959f34dd6946a27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include "routing/async_router.hpp"
#include "routing/router.hpp"
#include "geometry/point2d.hpp"
namespace downloader { class HttpRequest; }
namespace routing
{
class OsrmOnlineRouter : public AsyncRouter
{
m2::PointD m_finalPt;
/// Http callback from the server
void OnRouteReceived(downloader::HttpRequest & request, TReadyCallback callback);
public:
virtual string GetName() const;
// AsyncRouter overrides:
void CalculateRoute(m2::PointD const & startPoint, m2::PointD const & /* direction */,
m2::PointD const & /* finalPoint */, TReadyCallback const & callback) override;
};
} // namespace routing
|