2016-02-16 13:51:04 -05:00
|
|
|
#ifndef TILEPLUGIN_HPP
|
|
|
|
#define TILEPLUGIN_HPP
|
|
|
|
|
2016-03-02 12:26:44 -05:00
|
|
|
#include "engine/api/tile_parameters.hpp"
|
2016-05-27 15:05:04 -04:00
|
|
|
#include "engine/plugins/plugin_base.hpp"
|
2017-01-09 15:40:33 -05:00
|
|
|
#include "engine/routing_algorithms.hpp"
|
2016-02-16 13:51:04 -05:00
|
|
|
|
2017-01-09 15:40:33 -05:00
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
2016-02-16 13:51:04 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This plugin generates Mapbox Vector tiles that show the internal
|
|
|
|
* routing geometry and speed values on all road segments.
|
|
|
|
* You can use this along with a vector-tile viewer, like Mapbox GL,
|
|
|
|
* to display maps that show the exact road network that
|
|
|
|
* OSRM is routing. This is very useful for debugging routing
|
|
|
|
* errors
|
|
|
|
*/
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace engine
|
|
|
|
{
|
|
|
|
namespace plugins
|
|
|
|
{
|
|
|
|
|
2016-03-02 12:26:44 -05:00
|
|
|
class TilePlugin final : public BasePlugin
|
2016-02-16 13:51:04 -05:00
|
|
|
{
|
|
|
|
public:
|
2017-07-13 09:05:08 -04:00
|
|
|
Status HandleRequest(const RoutingAlgorithmsInterface &algorithms,
|
2016-10-05 06:33:58 -04:00
|
|
|
const api::TileParameters ¶meters,
|
|
|
|
std::string &pbf_buffer) const;
|
2016-02-16 13:51:04 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* TILEPLUGIN_HPP */
|