1 2 /* 3 * Copyright (c) 2023 Huawei Device Co., Ltd. 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef LOCATION_COLUMN_H 18 #define LOCATION_COLUMN_H 19 20 #include "base_column.h" 21 #include "media_column.h" 22 #include "userfilemgr_uri.h" 23 #include "userfile_manager_types.h" 24 #include "vision_album_column.h" 25 #include "vision_column.h" 26 #include "vision_face_tag_column.h" 27 28 namespace OHOS { 29 namespace Media { 30 // location table name 31 const std::string GEO_DICTIONARY_TABLE = "tab_analysis_geo_dictionary"; 32 const std::string GEO_KNOWLEDGE_TABLE = "tab_analysis_geo_knowledge"; 33 34 // create location table 35 const std::string LATITUDE = "latitude"; 36 const std::string LONGITUDE = "longitude"; 37 const std::string LOCATION_KEY = "location_key"; 38 const std::string LANGUAGE = "language"; 39 const std::string COUNTRY = "country"; 40 const std::string ADMIN_AREA = "admin_area"; 41 const std::string SUB_ADMIN_AREA = "sub_admin_area"; 42 const std::string LOCALITY = "locality"; 43 const std::string SUB_LOCALITY = "sub_locality"; 44 const std::string THOROUGHFARE = "thoroughfare"; 45 const std::string SUB_THOROUGHFARE = "sub_thoroughfare"; 46 const std::string FEATURE_NAME = "feature_name"; 47 const std::string CITY_ID = "city_id"; 48 const std::string CITY_NAME = "city_name"; 49 const std::string ADDRESS_DESCRIPTION = "address_description"; 50 const std::string LOCATION_TYPE = "location_type"; 51 const std::string DICTIONARY_INDEX = "dictionary_index"; 52 const std::string KNOWLEDG_INDEX = "knowledge_index"; 53 const std::string LOCATION_CITY_NAME_INDEX = "idx_city_name_index"; 54 const std::string LOCATION_LOCATION_KEY_INDEX = "idx_location_key_index"; 55 const std::string AOI = "aoi"; 56 const std::string POI = "poi"; 57 const std::string FIRST_AOI = "first_aoi"; 58 const std::string FIRST_POI = "first_poi"; 59 const std::string LOCATION_VERSION = "location_version"; 60 const std::string FIRST_AOI_CATEGORY = "first_aoi_category"; 61 const std::string FIRST_POI_CATEGORY = "first_poi_category"; 62 63 const std::string URI_GEO_DICTIONARY = MEDIALIBRARY_DATA_URI + "/" + GEO_DICTIONARY_TABLE; 64 const std::string URI_GEO_KEOWLEDGE = MEDIALIBRARY_DATA_URI + "/" + GEO_KNOWLEDGE_TABLE; 65 66 // location album param 67 const std::string START_LATITUDE = "startLatitude"; 68 const std::string END_LATITUDE = "endLatitude"; 69 const std::string START_LONGITUDE = "startLongitude"; 70 const std::string END_LONGITUDE = "endLongitude"; 71 const std::string DIAMETER = "diameter"; 72 } // namespace Media 73 } // namespace OHOS 74 #endif