2016-01-28 10:28:44 -05:00
|
|
|
#ifndef SERVER_API_PARSED_URL_HPP
|
|
|
|
#define SERVER_API_PARSED_URL_HPP
|
|
|
|
|
|
|
|
#include "util/coordinate.hpp"
|
|
|
|
|
2016-04-01 07:31:51 -04:00
|
|
|
#include <boost/fusion/include/adapt_struct.hpp>
|
|
|
|
|
2016-01-28 10:28:44 -05:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace osrm
|
|
|
|
{
|
|
|
|
namespace server
|
|
|
|
{
|
|
|
|
namespace api
|
|
|
|
{
|
|
|
|
|
2016-04-01 07:31:51 -04:00
|
|
|
struct ParsedURL final
|
2016-01-28 10:28:44 -05:00
|
|
|
{
|
|
|
|
std::string service;
|
|
|
|
unsigned version;
|
|
|
|
std::string profile;
|
2016-03-02 19:48:30 -05:00
|
|
|
std::string query;
|
2016-01-28 10:28:44 -05:00
|
|
|
};
|
2016-04-01 07:31:51 -04:00
|
|
|
|
|
|
|
} // api
|
|
|
|
} // server
|
|
|
|
} // osrm
|
|
|
|
|
2016-04-05 19:36:59 -04:00
|
|
|
BOOST_FUSION_ADAPT_STRUCT(osrm::server::api::ParsedURL,
|
2016-04-07 15:55:03 -04:00
|
|
|
(std::string, service)
|
|
|
|
(unsigned, version)
|
|
|
|
(std::string, profile)
|
2016-04-05 19:36:59 -04:00
|
|
|
(std::string, query)
|
|
|
|
)
|
2016-01-28 10:28:44 -05:00
|
|
|
|
|
|
|
#endif
|