[geodb] Adding separate bitset for geonames place types and using NFC normalization instead of NFD (requires retraining)

This commit is contained in:
Al
2016-05-29 01:36:00 -04:00
parent 6c39c663ff
commit c2ee5a45b3
2 changed files with 21 additions and 10 deletions

View File

@@ -25,6 +25,16 @@ typedef enum {
NUM_BOUNDARY_TYPES
} boundary_type_t;
#define GEONAMES_ADDRESS_COMPONENT_COUNTRY (1 << 0)
#define GEONAMES_ADDRESS_COMPONENT_ADMIN1 (1 << 1)
#define GEONAMES_ADDRESS_COMPONENT_ADMIN2 (1 << 2)
#define GEONAMES_ADDRESS_COMPONENT_ADMIN3 (1 << 3)
#define GEONAMES_ADDRESS_COMPONENT_ADMIN4 (1 << 4)
#define GEONAMES_ADDRESS_COMPONENT_ADMIN_OTHER (1 << 5)
#define GEONAMES_ADDRESS_COMPONENT_LOCALITY (1 << 6)
#define GEONAMES_ADDRESS_COMPONENT_NEIGHBORHOOD (1 << 7)
#define GEONAMES_ADDRESS_COMPONENT_POSTCODE (1 << 8)
typedef struct geoname {
uint32_t geonames_id;
char_array *name;