navit  0.5.3-trunk
town.c File Reference
#include <stdio.h>
#include <string.h>
#include "debug.h"
#include "mg.h"

Functions

static void town_coord_rewind (void *priv_data)
 
static int town_coord_get (void *priv_data, struct coord *c, int count)
 
static void town_attr_rewind (void *priv_data)
 
static int town_attr_get (void *priv_data, enum attr_type attr_type, struct attr *attr)
 
static void town_get_data (struct town_priv *twn, unsigned char **p)
 
int town_get (struct map_rect_priv *mr, struct town_priv *twn, struct item *item)
 
int town_get_byid (struct map_rect_priv *mr, struct town_priv *twn, int id_hi, int id_lo, struct item *item)
 
static int town_search_compare (unsigned char **p, struct map_rect_priv *mr)
 
struct itemtown_search_get_item (struct map_rect_priv *mr)
 

Variables

static struct item_methods town_meth
 
static unsigned char limit [] = {0,1,2,2,4,6,8,10,11,13,14,14,14,20,20,20,20,20,20}
 
static enum item_type town_item [] = {type_town_label_5e1, type_town_label_1e2, type_town_label_2e2, type_town_label_5e2, type_town_label_1e3, type_town_label_1e3, type_town_label_2e3, type_town_label_5e3, type_town_label_1e4, type_town_label_2e4, type_town_label_5e4, type_town_label_1e5, type_town_label_1e5, type_town_label_2e5, type_town_label_5e5, type_town_label_1e6, type_town_label_2e6}
 
static enum item_type district_item [] = {type_district_label_5e1, type_district_label_1e2, type_district_label_2e2, type_district_label_5e2, type_district_label_1e3, type_district_label_1e3, type_district_label_2e3, type_district_label_5e3, type_district_label_1e4, type_district_label_2e4, type_district_label_5e4, type_district_label_1e5, type_district_label_1e5, type_district_label_2e5, type_district_label_5e5, type_district_label_1e6, type_district_label_2e6}
 

Function Documentation

◆ town_attr_get()

◆ town_attr_rewind()

static void town_attr_rewind ( void *  priv_data)
static

◆ town_coord_get()

static int town_coord_get ( void *  priv_data,
struct coord c,
int  count 
)
static

References town_priv::c, c, and town_priv::cidx.

◆ town_coord_rewind()

static void town_coord_rewind ( void *  priv_data)
static

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

References town_priv::cidx.

◆ town_get()

◆ town_get_byid()

int town_get_byid ( struct map_rect_priv mr,
struct town_priv twn,
int  id_hi,
int  id_lo,
struct item item 
)

◆ town_get_data()

◆ town_search_compare()

◆ town_search_get_item()

Variable Documentation

◆ district_item

enum item_type district_item[] = {type_district_label_5e1, type_district_label_1e2, type_district_label_2e2, type_district_label_5e2, type_district_label_1e3, type_district_label_1e3, type_district_label_2e3, type_district_label_5e3, type_district_label_1e4, type_district_label_2e4, type_district_label_5e4, type_district_label_1e5, type_district_label_1e5, type_district_label_2e5, type_district_label_5e5, type_district_label_1e6, type_district_label_2e6}
static

Referenced by town_get().

◆ limit

unsigned char limit[] = {0,1,2,2,4,6,8,10,11,13,14,14,14,20,20,20,20,20,20}
static

Referenced by town_get().

◆ town_item

enum item_type town_item[] = {type_town_label_5e1, type_town_label_1e2, type_town_label_2e2, type_town_label_5e2, type_town_label_1e3, type_town_label_1e3, type_town_label_2e3, type_town_label_5e3, type_town_label_1e4, type_town_label_2e4, type_town_label_5e4, type_town_label_1e5, type_town_label_1e5, type_town_label_2e5, type_town_label_5e5, type_town_label_1e6, type_town_label_2e6}
static

Referenced by town_get().

◆ town_meth

struct item_methods town_meth
static
Initial value:
= {
}
static int town_coord_get(void *priv_data, struct coord *c, int count)
Definition: town.c:33
static void town_attr_rewind(void *priv_data)
Definition: town.c:43
static void town_coord_rewind(void *priv_data)
Definition: town.c:27
static int town_attr_get(void *priv_data, enum attr_type attr_type, struct attr *attr)
Definition: town.c:50

Referenced by town_get().