Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Contents of /trunk/src/functions.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 63 - (show annotations) (download) (as text)
Wed Jan 21 19:35:52 2009 UTC (16 years, 2 months ago) by amb
File MIME type: text/x-chdr
File size: 2209 byte(s)
Calculate way speeds at routing time.

1 /***************************************
2 $Header: /home/amb/CVS/routino/src/functions.h,v 1.14 2009-01-21 19:35:52 amb Exp $
3
4 Header file for function prototypes
5 ******************/ /******************
6 Written by Andrew M. Bishop
7
8 This file Copyright 2008,2009 Andrew M. Bishop
9 It may be distributed under the GNU Public License, version 2, or
10 any higher version. See section COPYING of the GNU Public license
11 for conditions under which this file may be redistributed.
12 ***************************************/
13
14
15 #ifndef FUNCTIONS_H
16 #define FUNCTIONS_H /*+ To stop multiple inclusions. +*/
17
18 #include <stdio.h>
19
20 #include "nodes.h"
21 #include "ways.h"
22 #include "segments.h"
23 #include "results.h"
24
25
26 /* In osmparser.c */
27
28 int ParseXML(FILE *file,NodesMem *OSMNodes,SegmentsMem *OSMSegments,WaysMem *OSMWays);
29
30
31 /* In files.c */
32
33 void *MapFile(const char *filename);
34
35 void UnMapFile(void *address);
36
37 int WriteFile(const char *filename,void *address,size_t length);
38
39
40 /* In optimiser.c */
41
42 Results *FindRoute(Nodes *nodes,Segments *segments,Ways *ways,node_t start,node_t finish,wayallow_t transport);
43 Results *FindRoute3(Nodes *supernodes,Segments *supersegments,Ways *superways,node_t start,node_t finish,Results *begin,Results *end,wayallow_t transport);
44
45 void PrintRoute(Results *results,Nodes *nodes,Segments *segments,Ways *ways,Nodes *supernodes,node_t start,node_t finish,wayallow_t transport);
46
47 Results *FindRoutes(Nodes *nodes,Segments *segments,Ways *ways,node_t start,Nodes *finish,wayallow_t transport);
48 Results *FindReverseRoutes(Nodes *nodes,Segments *segments,Ways *ways,Nodes *start,node_t finish,wayallow_t transport);
49
50 Results *CombineRoutes(Results *results,Nodes *nodes,Segments *segments,Ways *ways,node_t start,node_t finish,wayallow_t transport);
51
52 Results *FindRoutesWay(Nodes *nodes,Segments *segments,Ways *ways,node_t start,Nodes *finish,Way *match,int iteration);
53
54
55 /* Functions in supersegments.c */
56
57 NodesMem *ChooseSuperNodes(Nodes *nodes,Segments *segments,Ways *ways);
58
59 SegmentsMem *CreateSuperSegments(Nodes *nodes,Segments *segments,Ways *ways,Nodes *supernodes,int iteration);
60
61 WaysMem *CreateSuperWays(Ways *ways,SegmentsMem *supersegments);
62
63
64 #endif /* FUNCTIONS_H */

Properties

Name Value
cvs:description Function prototypes.