Routino SVN Repository Browser

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

ViewVC logotype

Annotation of /trunk/src/router.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download) (as text)
Wed Dec 31 12:21:27 2008 UTC (16 years, 3 months ago) by amb
File MIME type: text/x-csrc
File size: 1050 byte(s)
Initial revision

1 amb 2 /***************************************
2     $Header: /home/amb/CVS/routino/src/router.c,v 1.1 2008-12-31 12:21:09 amb Exp $
3    
4     OSM router.
5     ******************/ /******************
6     Written by Andrew M. Bishop
7    
8     This file Copyright 2008 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     #include <stdio.h>
16     #include <stdlib.h>
17    
18     #include "functions.h"
19     #include "types.h"
20    
21    
22     int main(int argc,char** argv)
23     {
24     node_t start,finish;
25    
26     /* Parse the command line aarguments */
27    
28     if(argc!=3)
29     {
30     fprintf(stderr,"Usage: %s <start-node> <finish-node>\n",argv[0]);
31     return(1);
32     }
33    
34     start=atoll(argv[1]);
35     finish=atoll(argv[2]);
36    
37     /* Load in the data */
38    
39     LoadNodeList("data/nodes.mem");
40     LoadSegmentList("data/segments.mem");
41    
42     /* Calculate the route */
43    
44     FindRoute(start,finish);
45    
46     /* Print the route */
47    
48     // PrintRoute(start,finish);
49    
50     return(0);
51     }

Properties

Name Value
cvs:description Router.