/**
* This method retrieves the map zoom level.
- *
+ *
* @return A value indicating the new zoom level.
*/
double GetZoomLevel() const;
/**
* This method retrieves the minimum map zoom level.
- *
+ *
* @return A value indicating the minimum map zoom level.
*/
double GetMinimumZoomLevel() const;
+#ifdef TIZEN_CUSTOMIZATION
+ /**
+ * This method sets the minimum map zoom level.
+ *
+ * @return A value indicating the minimum map zoom level.
+ */
+ void SetMinimumZoomLevel(double zoom);
+#endif
+
/**
* This method retrieves the maximum map zoom level.
- *
+ *
* @return A value indicating the maximum map zoom level.
*/
double GetMaximumZoomLevel() const;
+
+#ifdef TIZEN_CUSTOMIZATION
+ /**
+ * This method sets the maximum map zoom level.
+ *
+ * @return A value indicating the maximum map zoom level.
+ */
+ void SetMaximumZoomLevel(double zoom);
+#endif
/**
* This method pans the map the caller-specified number of pixels
*/
int GetTravelTime() const;
+#ifdef TIZEN_MIGRATION
+ /**
+ * This method sets a class property that holds the time required to traffic
+ * the length of the route.
+ *
+ * @param aSecs An integer value specifying the time required to traffic the
+ * length of the route in seconds.
+ */
+ void SetTrafficTime(int aSecs);
+
+ /**
+ * This method retrieves the value of a class property that holds the time
+ * required to traffic the length of the route.
+ *
+ * @return An integer value specifying the time required to traffic the
+ * length of the route in seconds.
+ */
+ int GetTrafficTime() const;
+#endif
+
/**
* This method sets a class property that holds the length of the route --
* the total distance to travel between the start and end points of the
* @return An integer indicating the maximum number of results to be retrieved.
*/
size_t GetAlternatives(void) const;
+
+ /**
+ * This method sets a value that indicates the realtime traffic status.
+ *
+ * @param uAlternatives An integer indicating the realtime traffic status.
+ */
+ void SetRealtimeTraffic(size_t uTraffic);
+
+ /**
+ * This method retrieves a value that indicates the realtime traffic status.
+ *
+ * @return An integer indicating the realtime traffic status.
+ */
+ size_t GetRealtimeTraffic(void) const;
#endif
/**
-libheremaps-engine.so.1.0.6_11
\ No newline at end of file
+libheremaps-engine.so.1.0.6_12
\ No newline at end of file
-libheremaps-engine.so.1.0.6_11
\ No newline at end of file
+libheremaps-engine.so.1.0.6_12
\ No newline at end of file
-libheremaps-engine.so.1.0.6_11
\ No newline at end of file
+libheremaps-engine.so.1.0.6_12
\ No newline at end of file
-libheremaps-engine.so.1.0.6_11
\ No newline at end of file
+libheremaps-engine.so.1.0.6_12
\ No newline at end of file
}
}
+ char *szRealtimeTraffic;
+ if (maps_preference_get(hPref, MAPS_ROUTE_REALTIME_TRAFFIC, &szRealtimeTraffic) == MAPS_ERROR_NONE)
+ {
+ if (!strcmp(szRealtimeTraffic, "true") || !strcmp(szRealtimeTraffic, "enabled"))
+ {
+ m_pQuery->SetRealtimeTraffic(1);
+ }
+ else if (!strcmp(szRealtimeTraffic, "false") || !strcmp(szRealtimeTraffic, "disabled"))
+ {
+ m_pQuery->SetRealtimeTraffic(2);
+ }
+ else
+ {
+ m_pQuery->SetRealtimeTraffic(0);
+ }
+ g_free(szRealtimeTraffic);
+ }
+
return HERE_ERROR_NONE;
}
void HereRoute::OnRouteReply(const GeoRouteReply& Reply)
{
- if (m_bCanceled || !m_pCbFunc) // ignore call back if it was cancelled.
+ if (m_bCanceled || !m_pCbFunc || !m_pQuery) // ignore call back if it was cancelled.
{
delete this;
return;
maps_route_set_distance_unit(mapsRoute, m_eDistanceUnit);
/* duration */
- maps_route_set_total_duration(mapsRoute, hereRoute->GetTravelTime());
+ if (m_pQuery->GetRealtimeTraffic() == 1)
+ maps_route_set_total_duration(mapsRoute, hereRoute->GetTrafficTime());
+ else
+ maps_route_set_total_duration(mapsRoute, hereRoute->GetTravelTime());
+
/* travel mode */
maps_route_transport_mode_e eTransportMode;
try {
for (int i = 0; i < h; i++)
- {
memcpy(dstimg_data+(i*w), srcimg_data+(i*m_pImpl->w+x), w*4);
- }
- free(srcimg_data);
}
- catch (std::exception &e)
- {
+ catch (std::exception &e) {
MAPS_LOGD("Exception caught: %s", e.what());
}
-
g_free(srcimg_data);
return HERE_ERROR_NONE;
double lat = hereCoord.GetLatitude();
double lng = hereCoord.GetLongitude();
+#if 1
+ int error = maps_coordinates_create(lat, lng, mapsCoord);
+ if (error != MAPS_ERROR_NONE)
+ return (here_error_e)ConvertToHereError(error);
+#else
maps_coordinates_h __mapsCoord;
int error = maps_coordinates_create(lat, lng, &__mapsCoord);
if (error != MAPS_ERROR_NONE)
maps_coordinates_clone(__mapsCoord, mapsCoord);
}
maps_coordinates_destroy(__mapsCoord);
+#endif
return HERE_ERROR_NONE;
}
{
case MAPS_VIEW_OBJECT_ADD: m_pImpl->visualObjects.add(object); break;
case MAPS_VIEW_OBJECT_SET_VISIBLE: m_pImpl->visualObjects.setVisible(object); break;
- case MAPS_VIEW_OBJECT_MOVE: m_pImpl->visualObjects.move(object); break;
case MAPS_VIEW_OBJECT_CHANGE: m_pImpl->visualObjects.update(object); break;
case MAPS_VIEW_OBJECT_REMOVE: m_pImpl->visualObjects.remove(object); break;
default: break;