forked from maximuska/Freemap-waze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroadmap_db_line.h
68 lines (55 loc) · 1.97 KB
/
roadmap_db_line.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* roadmap_db_line.h - the format of the address line table used by RoadMap.
*
* LICENSE:
*
* Copyright 2002 Pascal F. Martin
* Copyright 2008 Ehud Shabtai
*
* This file is part of RoadMap.
*
* RoadMap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* RoadMap is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RoadMap; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* SYNOPSYS:
*
* The RoadMap lines are described by the following table:
*
* line the ID of the line and its from and to points.
* The lines are sorted by square.
* bysquare an index of lines per square.
* bysquare2 A given line may have one end in a different square:
* this other index covers this very case.
*/
#ifndef _ROADMAP_DB_LINE__H_
#define _ROADMAP_DB_LINE__H_
#include "roadmap_types.h"
#define ROADMAP_LINE_NO_SHAPES ((unsigned short)-1)
#define ROADMAP_LINE_NO_RANGE ((unsigned short)-1)
typedef struct { /* table line */
unsigned short from;
unsigned short to;
unsigned short first_shape;
unsigned short range;
} RoadMapLine;
typedef struct { /* tables bysquare1 and bysquare2 */
unsigned short next[ROADMAP_CATEGORY_RANGE + 1];
unsigned short num_roundabout;
unsigned short first_broken[ROADMAP_DIRECTION_COUNT * 2 + 1];
} RoadMapLineBySquare;
typedef struct {
int line;
unsigned char cfcc;
RoadMapArea area;
} RoadMapLongLine;
#endif // _ROADMAP_DB_LINE__H_