/usr/local/include/osrm
NameSizeModeActions
contractor/-0755rm
engine/-0755rm
extractor/-0755rm
partitioner/-0755rm
storage/-0755rm
util/-0755rm
approach.hpp14420644editdlrm
bearing.hpp14380644editdlrm
contractor.hpp17470644editdlrm
contractor_config.hpp14890644editdlrm
coordinate.hpp16050644editdlrm
customizer.hpp17250644editdlrm
customizer_config.hpp14920644editdlrm
engine_config.hpp14650644editdlrm
error_codes.hpp9920644editdlrm
exception.hpp14720644editdlrm
extractor.hpp17310644editdlrm
extractor_config.hpp14830644editdlrm
json_container.hpp14700644editdlrm
match_parameters.hpp14860644editdlrm
nearest_parameters.hpp14940644editdlrm
osrm.hpp48930644editdlrm
osrm_fwd.hpp18680644editdlrm
partitioner.hpp17290644editdlrm
partitioner_config.hpp14990644editdlrm
route_parameters.hpp14860644editdlrm
status.hpp14340644editdlrm
storage_config.hpp14710644editdlrm
table_parameters.hpp14860644editdlrm
tile_parameters.hpp14820644editdlrm
trip_parameters.hpp14820644editdlrm
Edit: /usr/local/include/osrm/osrm.hpp (4893B)
/* 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 OSRM_HPP #define OSRM_HPP #include "engine/api/base_result.hpp" #include "osrm/osrm_fwd.hpp" #include "osrm/status.hpp" #include #include namespace osrm { namespace json = util::json; using engine::EngineConfig; using engine::api::MatchParameters; using engine::api::NearestParameters; using engine::api::RouteParameters; using engine::api::TableParameters; using engine::api::TileParameters; using engine::api::TripParameters; /** * Represents a Open Source Routing Machine with access to its services. * * This represents an Open Source Routing Machine (OSRM) instance, with the services: * * - Route: shortest path queries for coordinates * - Table: distance tables for coordinates * - Nearest: nearest street segment for coordinate * - Trip: shortest round trip between coordinates * - Match: snaps noisy coordinate traces to the road network * - Tile: vector tiles with internal graph representation * * All services take service-specific parameters, fill a JSON object, and return a status code. */ class OSRM final { public: /** * Constructs an OSRM instance with user-configurable settings. * * \param config The user-provided OSRM configuration. * \see EngineConfig */ explicit OSRM(EngineConfig &config); ~OSRM(); // Moveable but not copyable OSRM(OSRM &&) noexcept; OSRM &operator=(OSRM &&) noexcept; /** * Shortest path queries for coordinates. * * \param parameters route query specific parameters * \return Status indicating success for the query or failure * \see Status, RouteParameters and json::Object */ Status Route(const RouteParameters ¶meters, osrm::engine::api::ResultT &result) const; /** * Distance tables for coordinates. * * \param parameters table query specific parameters * \return Status indicating success for the query or failure * \see Status, TableParameters and json::Object */ Status Table(const TableParameters ¶meters, osrm::engine::api::ResultT &result) const; /** * Nearest street segment for coordinate. * * \param parameters nearest query specific parameters * \return Status indicating success for the query or failure * \see Status, NearestParameters and json::Object */ Status Nearest(const NearestParameters ¶meters, osrm::engine::api::ResultT &result) const; /** * Trip: shortest round trip between coordinates. * * \param parameters trip query specific parameters * \return Status indicating success for the query or failure * \see Status, TripParameters and json::Object */ Status Trip(const TripParameters ¶meters, osrm::engine::api::ResultT &result) const; /** * Match: snaps noisy coordinate traces to the road network * * \param parameters match query specific parameters * \return Status indicating success for the query or failure * \see Status, MatchParameters and json::Object */ Status Match(const MatchParameters ¶meters, osrm::engine::api::ResultT &result) const; /** * Tile: vector tiles with internal graph representation * * \param parameters tile query specific parameters * \return Status indicating success for the query or failure * \see Status, TileParameters and json::Object */ Status Tile(const TileParameters ¶meters, osrm::engine::api::ResultT &result) const; private: std::unique_ptr engine_; }; } #endif // OSRM_HPP