pgRouting  2.2
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Functions Variables Pages
withPoints_dd_driver.h
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 #pragma once
30 
31 #include "./../../common/src/pgr_types.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 
38  int do_pgr_many_withPointsDD(
39  pgr_edge_t *edges, size_t total_edges,
40  Point_on_edge_t *points_p, size_t total_points,
41  pgr_edge_t *edges_of_points, size_t total_edges_of_points,
42 
43  int64_t *start_pids_arr, size_t s_len,
44  float8 distance,
45 
46  bool directed,
47  char driving_side,
48  bool details,
49  bool equiCost,
50 
51  General_path_element_t **return_tuples, size_t *return_count,
52  char ** err_msg);
53 
54 
55  // CREATE OR REPLACE FUNCTION pgr_withPointKsp(
56  // edges_sql TEXT,
57  // points_sql TEXT,
58  // start_pid BIGINT,
59  // end_pid BIGINT,
60  // directed BOOLEAN DEFAULT true,
61  int do_pgr_withPointsDD(
62  pgr_edge_t *edges, size_t total_edges,
63  Point_on_edge_t *points, size_t total_points,
64  pgr_edge_t *edges_of_points, size_t total_edges_of_points,
65 
66  int64_t start_pid,
67  double distance,
68 
69  char driving_side,
70  bool details,
71  bool directed,
72 
73  General_path_element_t **return_tuples,
74  size_t *return_count,
75  char ** err_msg);
76 
77 #ifdef __cplusplus
78 }
79 #endif
80