#define PLACE_WIFI_APS "WifiAPs"
#define PLACE_CREATE_DATE "CreateDate"
-// Data values
-enum PlaceCategId {
- PLACE_CATEG_ID_NONE = 0,
- PLACE_CATEG_ID_HOME = 1,
- PLACE_CATEG_ID_WORK = 2,
- PLACE_CATEG_ID_OTHER = 3
-};
-
enum PlaceRecogMode {
PLACE_RECOG_HIGH_ACCURACY_MODE = 0,
PLACE_RECOG_LOW_POWER_MODE = 1
#include "../place_recognition_types.h"
#include <string>
#include <ctime>
+#include <MyPlaceTypes.h>
namespace ctx {
typedef std::map<int, num_t> Categs; // scores of categories
- struct Location {
- double latitude;
- double longitude;
- double accuracy; // [m]
-
- Location(double latitude_ = 0.0, double longitude_ = 0.0, double accuracy_ = -1.0)
- : latitude(latitude_), longitude(longitude_), accuracy(accuracy_) {}
-
- }; /* struct Location */
-
#ifdef TIZEN_ENGINEER_MODE
enum LocationSource {
LOCATION_METHOD_REQUEST = 0,
std::shared_ptr<MacSet> macSetFromMacs2Counts(const Macs2Counts &macs2Counts);
- typedef float confidence_t;
-
- class Place {
-
- public:
- PlaceCategId categId; // category of a place (work/home/other)
- confidence_t categConfidence; // confidence of the above category - between [0,1]
- std::string name; // for now: "work"/"home"/"other"
- bool locationValid;
- Location location; // makes sense if locationValid == true;
- std::string wifiAps; // WiFi APs MAC addresses separated by ","
- time_t createDate; // The last update time of this place
-
- }; /* class Place */
-
} /* namespace ctx */
#endif /* End of _CONTEXT_PLACE_RECOGNITION_USER_PLACES_TYPES_H_ */