[geodb] Adding separate bitset for geonames place types and using NFC normalization instead of NFD (requires retraining)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user