pgRouting  2.2
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Functions Variables Pages
bdsp.h
1 /*PGR-GNU*****************************************************************
2 
3  * Bi Directional Shortest path algorithm for PostgreSQL
4  *
5  * Copyright (c) 2005 Sylvain Pasche
6 Copyright (c) 2015 pgRouting developers
7 Mail: project@pgrouting.org
8 
9 ------
10 
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
15 
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20 
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 
25 ********************************************************************PGR-GNU*/
26 #ifndef _BDSP_H
27 #define _BDSP_H
28 
29 
30 #include "postgres.h"
31 #include "../../common/src/pgr_types.h"
32 
33 typedef pgr_edge_t edge_t;
34 
35 #ifdef __cplusplus
36 extern "C"
37 #endif
38 
39 int bidirsp_wrapper( edge_t *edges,
40  unsigned int edge_count,
41  int maxNode,
42  int start_vertex,
43  int end_vertex,
44  bool directed,
45  bool has_reverse_cost,
46  path_element_t **path,
47  int *path_count,
48  char **err_msg
49  );
50 
51 #endif