/srv/osrm/osrm-backend/include/engine/api
NameSizeModeActions
flatbuffers/-0755rm
base_api.hpp67170644editdlrm
base_parameters.hpp49920644editdlrm
base_result.hpp3730644editdlrm
json_factory.hpp39060644editdlrm
match_api.hpp101620644editdlrm
match_parameters.hpp33410644editdlrm
match_parameters_tidy.hpp66250644editdlrm
nearest_api.hpp62240644editdlrm
nearest_parameters.hpp20590644editdlrm
route_api.hpp459240644editdlrm
route_parameters.hpp89230644editdlrm
table_api.hpp163160644editdlrm
table_parameters.hpp60310644editdlrm
tile_parameters.hpp26800644editdlrm
trip_api.hpp68940644editdlrm
trip_parameters.hpp25250644editdlrm
Edit: /srv/osrm/osrm-backend/include/engine/api/trip_parameters.hpp (2525B)
/* Copyright (c) 2017, Project OSRM contributors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef ENGINE_API_TRIP_PARAMETERS_HPP #define ENGINE_API_TRIP_PARAMETERS_HPP #include "engine/api/route_parameters.hpp" #include #include namespace osrm::engine::api { /** * Parameters specific to the OSRM Trip service. * * \see OSRM, Coordinate, Hint, Bearing, RouteParame, RouteParameters, TableParameters, * NearestParameters, TripParameters, MatchParameters and TileParameters */ struct TripParameters : public RouteParameters { TripParameters() = default; enum class SourceType { Any, First }; enum class DestinationType { Any, Last }; template TripParameters(SourceType source_, DestinationType destination_, bool roundtrip_, Args &&... args_) : RouteParameters{std::forward(args_)...}, source{source_}, destination{destination_}, roundtrip{roundtrip_} { } SourceType source = SourceType::Any; DestinationType destination = DestinationType::Any; bool roundtrip = true; bool IsValid() const { return RouteParameters::IsValid(); } }; } // namespace osrm::engine::api #endif