osrm-backend/include/engine/polyline_compressor.hpp

25 lines
563 B
C++
Raw Normal View History

2014-11-28 04:07:06 -05:00
#ifndef POLYLINECOMPRESSOR_H_
#define POLYLINECOMPRESSOR_H_
struct SegmentInformation;
2016-01-02 11:13:44 -05:00
#include "osrm/coordinate.hpp"
2015-05-31 07:57:27 -04:00
2014-11-28 04:07:06 -05:00
#include <string>
#include <vector>
class PolylineCompressor
{
private:
std::string encode_vector(std::vector<int> &numbers) const;
std::string encode_number(const int number_to_encode) const;
public:
std::string get_encoded_string(const std::vector<SegmentInformation> &polyline) const;
2016-01-05 06:04:04 -05:00
2015-06-02 07:06:06 -04:00
std::vector<FixedPointCoordinate> decode_string(const std::string &geometry_string) const;
2014-11-28 04:07:06 -05:00
};
#endif /* POLYLINECOMPRESSOR_H_ */