LOCATION_ERROR_CONFIGURATION, ///< Configuration setting is not correct.
LOCATION_ERROR_PARAMETER, ///< Input parameter is not correct.
LOCATION_ERROR_NOT_FOUND, ///< Output is not found.
+ LOCATION_ERROR_NOT_SUPPORTED, ///< Not supported.
LOCATION_ERROR_UNKNOWN, ///< Unknown error.
} LocationError;
UPDATE_TYPE_NONE = -1, ///< Undefined update type.
POSITION_UPDATED = 0, ///< This type is used when position information is updated.
VELOCITY_UPDATED, ///< This type is used when velocity information is updated.
- SATELLITE_UPDATED, ///< This type is used when satellite information is updated.
+ SATELLITE_UPDATED, ///< This type is used when satellite information is updated.
ADDRESS_UPDATED, ///< This type is used when address information is updated. This is not implemented yet.
GEOCODE_UPDATED, ///< This type is used when geocode information is updated. This is not implemented yet.
REVERSEGEOCODE_UPDATED ///< This type is used when reverse geocode information is updated. This is not implemented yet.
} LocationUpdateType;
+typedef enum {
+ MAP_SERVICE_PREF_LANGUAGE,
+ MAP_SERVICE_PREF_DISTANCE_UNIT,
+
+ MAP_SERVICE_PREF_PROPERTY,
+
+ MAP_SERVICE_GEOCODE_TYPE,
+ MAP_SERVICE_REVERSE_GEOCODE_TYPE,
+
+ MAP_SERVICE_POI_TYPE,
+ MAP_SERVICE_POI_SEARCH_BY_ADDRESS,
+ MAP_SERVICE_POI_SEARCH_BY_FREEFORM_ADDRESS,
+ MAP_SERVICE_POI_SEARCH_BY_CIRCLE_BOUNDARY,
+ MAP_SERVICE_POI_SEARCH_BY_RECT_BOUNDARY,
+ MAP_SERVICE_POI_SEARCH_BY_POLYGON_BOUNDARY,
+ MAP_SERVICE_POI_PREF_SORT_BY,
+ MAP_SERVICE_POI_PREF_PROPERTY,
+ MAP_SERVICE_POI_FILTER,
+ MAP_SERVICE_POI_FILTER_CATEGORY,
+
+ MAP_SERVICE_ROUTE_REQUEST_FREEFORM_ADDR_TO_AVOID,
+ MAP_SERVICE_ROUTE_REQUEST_STRUCTED_ADDR_TO_AVOID,
+ MAP_SERVICE_ROUTE_REQUEST_CIRCLE_AREA_TO_AVOID,
+ MAP_SERVICE_ROUTE_REQUEST_RECT_AREA_TO_AVOID,
+ MAP_SERVICE_ROUTE_REQUEST_POLYGON_AREA_TO_AVOID,
+ MAP_SERVICE_ROUTE_REQUEST_FEATURE_TO_AVOID,
+ MAP_SERVICE_ROUTE_PREF_TYPE,
+ MAP_SERVICE_ROUTE_PREF_TRANSPORT_MODE,
+ MAP_SERVICE_ROUTE_PREF_GEOMETRY_BOUNDING_BOX,
+ MAP_SERVICE_ROUTE_PREF_GEOMETRY_RETRIEVAL,
+ MAP_SERVICE_ROUTE_PREF_INSTRUCTION_GEOMETRY,
+ MAP_SERVICE_ROUTE_PREF_INSTRUCTION_BOUNDING_BOX,
+ MAP_SERVICE_ROUTE_PREF_INSTRUCTION_RETRIEVAL,
+ MAP_SERVICE_ROUTE_PREF_REALTIME_TRAFFIC,
+ MAP_SERVICE_ROUTE_PREF_PROPERTY,
+ MAP_SERVICE_ROUTE_DISTANCE_UNIT,
+ MAP_SERVICE_ROUTE_PROPERTY,
+ MAP_SERVICE_ROUTE_SEGMENT_PROPERTY,
+ MAP_SERVICE_ROUTE_STEP_PROPERTY,
+ MAP_SERVICE_TYPE_MAX
+
+} LocationMapServiceType;
+
/**
* @brief Location object redefined by GObject.
*/
typedef struct _LocationPosition LocationPosition;
/**
- * @brief This represents last known position information such as latitude-longitude values and accuracy.
+ * @brief This represents last known position information such as latitude-longitude values and accuracy. \n
+ * This would be deprecated soon.
*/
typedef struct _LocationLastPosition LocationLastPosition;
/**
+ * @brief This represents position information such as number of satellites in used or in view.
+ */
+typedef struct _LocationSatellite LocationSatellite;
+
+/**
* @brief This represents velocity information such as as speed, direction, climb.
*/
typedef struct _LocationVelocity LocationVelocity;
typedef struct _LocationAccuracy LocationAccuracy;
/**
+ * @brief This represents boundary information such as rectangular or circle area.
+ */
+typedef struct _LocationBoundary LocationBoundary;
+
+/**
* @brief This represents address information such as building number, street name, etc.
*/
typedef struct _LocationAddress LocationAddress;
/**
- * @brief This represents boundary information such as rectangular or circle area.
+ * @brief This represents a structure of Location preference.
*/
-typedef struct _LocationBoundary LocationBoundary;
+typedef struct _LocationPreference LocationPreference;
/**
- * @brief This represents position information such as number of satellites in used or in view.
+ * @brief This represents a structure of Location POI filter.
*/
-typedef struct _LocationSatellite LocationSatellite;
+typedef struct _LocationPOIFilter LocationPOIFilter;
+
+/**
+ * @brief This represents a structure of Location POI preference.
+ */
+typedef struct _LocationPOIPreference LocationPOIPreference;
/**
- * @brief This represents a number of POI informations.
+ * @brief This represents a structure of Landmark information.
*/
-typedef struct _LocationPOIInfo LocationPOIInfo;
+typedef struct _LocationLandmark LocationLandmark;
+
+/**
+ * @brief This represents a structure of Landmark Url.
+ */
+typedef struct _LocationLandmarkUrl LocationLandmarkUrl;
+
+/**
+ * @brief This represents a structure of Location route preference.
+ */
+typedef struct _LocationRoutePreference LocationRoutePreference;
+
+/**
+ * @brief This represents a structure of Location route.
+ */
+typedef struct _LocationRoute LocationRoute;
+
+/**
+ * @brief This represents a structure of Location route segment.
+ */
+typedef struct _LocationRouteSegment LocationRouteSegment;
+
+/**
+ * @brief This represents a structure of Location route step.
+ */
+typedef struct _LocationRouteStep LocationRouteStep;
/**
* @brief This represents callback function which will be called to give position information.
/**
* @brief This represents callback function which will be called to give address information.
*/
-typedef void (*LocationAddressCB)(LocationError error, LocationAddress *address, LocationAccuracy *acc, gpointer userdata);
+typedef void (*LocationAddressCB)(LocationError error, LocationAddress *address, LocationAccuracy *acc, gpointer userdata);
/**
* @brief This represents callback function which will be called to give POI information.
*/
-typedef void (*LocationPOICB)(LocationError error, LocationPOIInfo *poi, gpointer userdata);
+typedef void (*LocationPOICB)(LocationError error, guint req_id, GList *landmark_list, gchar *error_code, gchar *error_msg, gpointer userdata);
+
+/**
+ * @brief This represents callback function which will be called to give Route information.
+ */
+typedef void (*LocationRouteCB)(LocationError error, guint req_id, GList *route_list, gchar *error_code, gchar *error_msg, gpointer userdata);
/**
* @}@}