pgRouting  2.2
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
 All Classes Functions Variables Pages
pickDeliver/src/pdp.h
1 /*PGR-GNU*****************************************************************
2 
3 Copyright (c) 2014 Manikata Kondeti
4 mani.iiit123@gmail.com
5 
6 ------
7 
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12 
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 
22 ********************************************************************PGR-GNU*/
23 
24 #include<stdio.h>
25 #include<stdlib.h>
26 #include<math.h>
27 #include "postgres.h"
28 
29 #pragma once
30 
31 // For C and C++ inclusion
32 
33 typedef struct {
34  int64_t id;
35  double x;
36  double y;
37  double demand;
38  double Etime;
39  double Ltime;
40  double Stime;
41  int64_t Pindex;
42  int64_t Dindex;
43  double Ddist;
44 } Customer;
45 
46 typedef struct {
47  int64_t seq;
48  int64_t rid;
49  int64_t nid;
50  double cost;
51 } path_element;
52 
53 
54 
55 #ifdef __cplusplus
56 extern "C"
57 #endif
58 int64_t Solver(Customer *c,
59  size_t total_tuples,
60  int64_t vehicle_count,
61  int64_t capacity ,
62  char **msg,
63  path_element **results,
64  size_t *length_results);
65 
66 #ifdef __cplusplus
67 extern "C"
68 #endif
69