/*
- * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * Copyright (C) 2009-2011 Andy Spencer <andy753421@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#ifndef __LOCATION_H__
#define __LOCATION_H__
+#include "grits-util.h"
+
enum {
- LOCATION_END,
- LOCATION_CITY,
- LOCATION_STATE,
+ LOCATION_END, // Special marker for end-of-list
+ LOCATION_CITY, // Cities (actually radars)
+ LOCATION_STATE, // States (for indexing)
+ LOCATION_NOP, // Missing from IDD for some reason
};
typedef struct {
- int type;
- char *code;
- char *label;
- double lat;
- double lon;
- double elev;
+ gint type;
+ gchar *code;
+ gchar *name;
+ GritsPoint pos;
+ gdouble lod;
} city_t;
extern city_t cities[];