78 struct item town_attr_item;
179 unsigned char *
p=(
unsigned char *)str->
c;
216 struct housenumber hn[100];
223 char first_number[32];
224 char last_number[32];
225 char current_number[32];
262 #define BT_STACK_SIZE 32 329 struct item search_item;
struct file * f
Definition: mg.h:308
int aux_len
Definition: mg.h:173
unsigned char p[4]
Definition: mg.h:291
attr_type
Definition: attr.h:34
int town_get(struct map_rect_priv *mr, struct town_priv *poly, struct item *item)
Definition: town.c:136
struct street_name_segment * segment
Definition: mg.h:190
unsigned int id
Definition: mg.h:58
unsigned char type
Definition: mg.h:92
unsigned int unknown2
Definition: mg.h:66
unsigned char p[5]
Definition: mg.h:48
static int street_str_get_segid(struct street_str *str)
Definition: mg.h:132
static unsigned int get_u32_unal(unsigned char **p)
Definition: data.h:87
struct street_name_segment * segments
Definition: mg.h:172
struct item * housenumber_search_get_item(struct map_rect_priv *mr)
Definition: street.c:948
int type_count
Definition: mg.h:198
static unsigned char street_str_get_limit(struct street_str *str)
Definition: mg.h:133
int status
Definition: mg.h:207
struct map_selection * cur_sel
Definition: mg.h:317
unsigned int unknown4
Definition: mg.h:71
struct map_rect_priv * map_rect_new_mg(struct map_priv *map, struct map_selection *sel)
Definition: map.c:222
int binarytree
Definition: mg.h:284
unsigned char * next
Definition: mg.h:206
int country
Definition: mg.h:146
int offset
Definition: garmin_img.c:66
unsigned char * block_start
Definition: mg.h:279
unsigned char p[32]
Definition: mg.h:39
file_index
Definition: mg.h:229
int y
Definition: coord.h:36
unsigned char * aux_data
Definition: mg.h:174
int tree_search_hv(char *dirname, char *filename, unsigned int search1, unsigned int search2, int *result)
Definition: tree.c:174
int tmp_len
Definition: mg.h:175
static unsigned char street_str_get_unknown2(struct street_str *str)
Definition: mg.h:134
int tmp_len
Definition: mg.h:154
int subpoly_num_all
Definition: mg.h:85
int search_partial
Definition: mg.h:332
char * name2
Definition: mg.h:149
static int block_get_count(struct block *blk)
Definition: mg.h:44
struct file * name_file
Definition: mg.h:196
unsigned char * p_rewind
Definition: mg.h:204
struct street_header * header
Definition: mg.h:197
unsigned char * end
Definition: mg.h:300
unsigned char * tmp_data
Definition: mg.h:176
int len
Definition: mg.h:164
int search_block
Definition: mg.h:340
static int street_header_get_count(struct street_header *str)
Definition: mg.h:107
struct street_type * type
Definition: mg.h:199
int aidx
Definition: mg.h:97
static unsigned short block_offset_get_block(struct block_offset *blk)
Definition: mg.h:294
int number
Definition: mg.h:159
int subpoly_num
Definition: mg.h:84
int low
Definition: mg.h:301
int tree_search_next(struct tree_search *ts, unsigned char **p, int dir)
Definition: tree.c:223
char * name
Definition: mg.h:90
int housenumber_search_setup(struct map_rect_priv *mr)
Definition: street.c:890
int tree_search_next_lin(struct tree_search *ts, unsigned char **p)
Definition: tree.c:263
unsigned char order
Definition: mg.h:63
struct attr * search_attr
Definition: mg.h:330
unsigned char * p_start
Definition: mg.h:283
static unsigned short street_type_get_country(struct street_type *str)
Definition: mg.h:115
unsigned char * p
Definition: mg.h:272
int hn_count
Definition: mg.h:217
int mg_country_postal_len(int country)
Definition: map.c:141
unsigned char * cstart
Definition: mg.h:50
int cidx
Definition: mg.h:73
struct item * town_search_get_item(struct map_rect_priv *mr)
Definition: town.c:229
struct map_selection * sel
Definition: binfile.c:143
char * search_str
Definition: mg.h:331
int aidx
Definition: mg.h:49
int poly_get_byid(struct map_rect_priv *mr, struct poly_priv *poly, int id_hi, int id_lo, struct item *item)
Definition: poly.c:243
char * postal_code1
Definition: mg.h:62
static void block_get_r(struct block *blk, struct coord_rect *r)
Definition: mg.h:45
unsigned char order
Definition: mg.h:91
unsigned char size
Definition: mg.h:67
int stackp
Definition: mg.h:270
int poly_get(struct map_rect_priv *mr, struct poly_priv *poly, struct item *item)
Definition: poly.c:101
unsigned char * astart
Definition: mg.h:51
unsigned char * search_p
Definition: mg.h:334
int curr_node
Definition: mg.h:310
int high
Definition: mg.h:302
struct coord * c
Definition: mg.h:187
unsigned char unknown3
Definition: mg.h:69
static int block_get_size(struct block *blk)
Definition: mg.h:42
struct block * b
Definition: mg.h:280
static unsigned char street_type_get_order(struct street_type *str)
Definition: mg.h:114
int len
Definition: mg.h:185
struct coord lu
Definition: coord.h:59
struct tree_hdr * hdr
Definition: mg.h:297
unsigned char * p
Definition: mg.h:298
int country
Definition: mg.h:167
Represents the map from a single binfile.
Definition: binfile.c:105
struct file * file
Definition: mg.h:321
int dist
Definition: mg.h:166
Implementation-specific map rect data.
Definition: binfile.c:137
struct street_name_segment * segments
Definition: mg.h:151
int mg_country_from_isonum(int isonum)
Definition: map.c:125
int street_get_byid(struct map_rect_priv *mr, struct street_priv *street, int id_hi, int id_lo, struct item *item)
Definition: street.c:492
int block_count
Definition: mg.h:268
int block_next_lin(struct map_rect_priv *mr)
Definition: block.c:170
char filename[8]
Definition: garmin_img.c:122
char * suffix
Definition: mg.h:160
static unsigned char street_header_get_order(struct street_header *str)
Definition: mg.h:106
unsigned char * p
Definition: mg.h:88
struct block_offset * search_blk_off
Definition: mg.h:339
int status_rewind
Definition: mg.h:208
unsigned char * tmp_data
Definition: mg.h:155
int id_lo
Definition: item.h:103
int last_node
Definition: mg.h:309
unsigned char type
Definition: mg.h:64
char * postal_code2
Definition: mg.h:70
void map_rect_destroy_mg(struct map_rect_priv *mr)
Definition: map.c:315
int segment_count
Definition: mg.h:171
int search_country
Definition: mg.h:328
void tree_search_init(char *dirname, char *filename, struct tree_search *ts, int offset)
Definition: tree.c:293
int town_get_byid(struct map_rect_priv *mr, struct town_priv *twn, int id_hi, int id_lo, struct item *item)
Definition: town.c:184
GHashTable * streetname_hash
Definition: mg.h:226
int next
Definition: mg.h:267
int aux_len
Definition: mg.h:152
static void street_name_numbers_get_coord(struct street_name_numbers *str, struct coord *c)
Definition: mg.h:178
Used to select data from a map.
Definition: map.h:57
unsigned char * end
Definition: mg.h:282
unsigned int polys
Definition: mg.h:93
unsigned char * subpoly_next
Definition: mg.h:86
int cidx
Definition: mg.h:214
unsigned char * p
Definition: mg.h:203
int townassoc
Definition: mg.h:147
int order
Definition: mg.h:271
struct map_selection * xsel
Definition: mg.h:316
int more
Definition: mg.h:211
struct block * b
Definition: mg.h:265
static unsigned short get_u16_unal(unsigned char **p)
Definition: data.h:48
char * district
Definition: mg.h:61
int flags
Definition: mg.h:212
int search_blk_count
Definition: mg.h:335
struct item * street_search_get_item(struct map_rect_priv *mr)
Definition: street.c:811
void tree_search_free(struct tree_search *ts)
Definition: tree.c:304
unsigned char * coord_begin
Definition: mg.h:202
int bytes
Definition: mg.h:210
#define BT_STACK_SIZE
Definition: mg.h:262
unsigned char * p
Definition: mg.h:281
Holds information about a map.
Definition: map.c:60
unsigned char * aux_data
Definition: mg.h:153
unsigned int count_sum
Definition: mg.h:95
int street_get(struct map_rect_priv *mr, struct street_priv *street, struct item *item)
Definition: street.c:366
int block_get_byindex(struct file *file, int idx, struct block_priv *blk)
Definition: block.c:90
unsigned char * end
Definition: mg.h:273
int segid
Definition: mg.h:140
static int block_get_next(struct block *blk)
Definition: mg.h:43
unsigned int * count
Definition: mg.h:94
struct map_rect_priv * mr
Definition: traffic.c:178
FILE * debug
Definition: pedestrian.c:423
int aidx
Definition: mg.h:74
int poly_num
Definition: mg.h:82
struct street_str * str_start
Definition: mg.h:201
int tag
Definition: mg.h:165
char * dirname
Definition: mg.h:259
Implementation-specific item data for traffic map items.
Definition: mg.h:47
int last_low
Definition: mg.h:303
Contains exported functions / structures for map.c.
static unsigned char street_str_get_unknown3(struct street_str *str)
Definition: mg.h:135
int segment_count
Definition: mg.h:150
static unsigned short block_offset_get_offset(struct block_offset *blk)
Definition: mg.h:293
int search_linear
Definition: mg.h:333
struct item * search_item_tmp
Definition: mg.h:338
static unsigned int get_u32(unsigned char **p)
Definition: data.h:75
struct item * map_rect_get_item_byid_mg(struct map_rect_priv *mr, int id_hi, int id_lo)
Definition: map.c:291
struct street_str * str
Definition: mg.h:200
struct coord rl
Definition: coord.h:60
struct street_header_type __attribute__
unsigned char * subpoly_start
Definition: mg.h:87
unsigned char * poly_next
Definition: mg.h:83
int block_num
Definition: mg.h:277
int len
Definition: mg.h:145
struct file * file
Definition: mg.h:30
char name[0]
Definition: street.c:496
unsigned char p[3]
Definition: mg.h:112
unsigned int street_assoc
Definition: mg.h:68
int country
Definition: mg.h:141
static unsigned int street_str_get_nameid(struct street_str *str)
Definition: mg.h:137
int block_next(struct map_rect_priv *mr)
Definition: block.c:203
unsigned char * end
Definition: mg.h:205
struct coord * c
Definition: mg.h:168
int last_high
Definition: mg.h:304
int street_name_get_byid(struct map_rect_priv *mr, struct street_priv *street, int id_hi, int id_lo, struct item *item)
Definition: street.c:730
int mg_country_to_isonum(int country)
Definition: map.c:133
unsigned char * last
Definition: mg.h:299
int block_init(struct map_rect_priv *mr)
Definition: block.c:154
char * name1
Definition: mg.h:148
int housenumber
Definition: mg.h:213
unsigned char p[12]
Definition: mg.h:130
struct map_rect_priv * search_mr_tmp
Definition: mg.h:337
int id_hi
Definition: item.h:102
unsigned short country
Definition: mg.h:65
int x
Definition: coord.h:35
struct timestamp ts
Definition: garmin_img.c:88
char * name
Definition: mg.h:60
static int block_get_blocks(struct block *blk)
Definition: mg.h:41
static unsigned char street_str_get_type(struct street_str *str)
Definition: mg.h:136
int tag
Definition: mg.h:186