PGROUTING  2.6
withPoints_ksp_driver.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: withPoints_driver.h
3 
4 Copyright (c) 2015 pgRouting developers
5 Mail: project@pgrouting.org
6 
7 Function's developer:
8 Copyright (c) 2015 Celia Virginia Vergara Castillo
9 Mail:
10 
11 ------
12 
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17 
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22 
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 
27 ********************************************************************PGR-GNU*/
28 
29 #ifndef INCLUDE_DRIVERS_YEN_WITHPOINTS_KSP_DRIVER_H_
30 #define INCLUDE_DRIVERS_YEN_WITHPOINTS_KSP_DRIVER_H_
31 #pragma once
32 
34 #include "c_types/pgr_edge_t.h"
36 
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42  // CREATE OR REPLACE FUNCTION pgr_withPointKsp(
43  // edges_sql TEXT,
44  // points_sql TEXT,
45  // start_pid BIGINT,
46  // end_pid BIGINT,
47  // directed BOOLEAN DEFAULT true,
49  pgr_edge_t *edges, size_t total_edges,
50  Point_on_edge_t *points, size_t total_points,
51  pgr_edge_t *edges_of_points, size_t total_edges_of_points,
52  int64_t start_pid,
53  int64_t end_pid,
54  int k,
55  bool directed,
56  bool heap_paths,
57  char driving_side,
58  bool details,
59 
60  General_path_element_t **return_tuples,
61  size_t *return_count,
62  char ** log_msg,
63  char ** notice_msg,
64  char ** err_msg);
65 
66 
67 #ifdef __cplusplus
68  }
69 #endif
70 
71 #endif // INCLUDE_DRIVERS_YEN_WITHPOINTS_KSP_DRIVER_H_
int do_pgr_withPointsKsp(pgr_edge_t *edges, size_t total_edges, Point_on_edge_t *points, size_t total_points, pgr_edge_t *edges_of_points, size_t total_edges_of_points, int64_t start_pid, int64_t end_pid, int k, bool directed, bool heap_paths, char driving_side, bool details, General_path_element_t **return_tuples, size_t *return_count, char **log_msg, char **notice_msg, char **err_msg)