+[Version] maps-plugin-mapzen_0.0.6
+[Date] 30 Oct 2017
+[Title] Revise timeout limits for downloading map tiles.
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
+[Version] maps-plugin-mapzen_0.0.5
+[Date] 10 Oct 2017
+[Title] fix warning messages
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
+[Version] maps-plugin-mapzen_0.0.3
+[Date] 18 May 2017
+[Title] add mapzen plugin
+[Developer] Jongmun Woo <jongmun.woo@samsung.com>
+
[Version] maps-plugin-mapzen_0.0.2
[Date] 08 Feb 2017
[Title] fix call EXPOST_API of other plugin
Name: maps-plugin-mapzen
Summary: Tizen Mapzen Maps Plug-in Library
-Version: 0.0.3
+Version: 0.0.6
Release: 1
Group: Location/Libraries
-License: Apache-2.0
+License: Apache-2.0 and MIT
Source0: %{name}-%{version}.tar.gz
Source1: deps.tar.gz
ExclusiveArch: %ix86 x86_64 %arm aarch64
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
+#
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
%ifarch %arm
%define ARCH arm
int query_geocode_within_bounding_box(gchar *maps_key, char *address, coords_s top_left, coords_s bottom_right, int num_results, gpointer user_data)
{
- char url[1024];
- char tmpStr[512];
+ char url[1024] = "";
+ char tmpStr[512] = "";
if (maps_key != NULL)
snprintf(tmpStr, sizeof(tmpStr), GEOCODE_URL, maps_key);
int query_geocode_within_circle(gchar *maps_key, char *address, coords_s center, double radius, int num_results, gpointer user_data)
{
- char url[1024];
- char tmpStr[512];
+ char url[1024] = "";
+ char tmpStr[512] = "";
if (maps_key != NULL)
snprintf(tmpStr, sizeof(tmpStr), GEOCODE_URL, maps_key);
int query_geocode(gchar *maps_key, char *address, int num_results, gpointer user_data)
{
MAP_DEBUG("geocode address : %s", address);
- char url[1024];
- char tmpStr[512];
+ char url[1024] = "";
+ char tmpStr[512] = "";
if (maps_key != NULL)
snprintf(tmpStr, sizeof(tmpStr), GEOCODE_URL, maps_key);
int query_places(gchar *maps_key, gchar *search_str, gchar *categories, mapzen_boundary_s *boundary, int num_res, gpointer user_data, mapzen_req_type type)
{
- char url[1024];
- char tmpStr[512];
+ char url[1024] = "";
+ char tmpStr[512] = "";
if (search_str != NULL || boundary->type == MAPZEN_BOUNDARY_RECT) {
if (maps_key != NULL)
int query_place_details(gchar *maps_key, gchar *ids, gpointer user_data)
{
- char url[1024];
- char tmpStr[512];
+ char url[1024] = "";
+ char tmpStr[512] = "";
if (maps_key != NULL)
snprintf(tmpStr, sizeof(tmpStr), PLACE_DETAILS_URL, maps_key);
- else snprintf(tmpStr, sizeof(tmpStr), PLACE_DETAILS_URL, "null");
- STRCPY(url, tmpStr);
+ else
+ snprintf(tmpStr, sizeof(tmpStr), PLACE_DETAILS_URL, "null");
+ STRCPY(url, tmpStr);
if (ids != NULL) {
char *encoded = curl_escape(ids, 0);
else
requestList = g_list_insert_before(requestList, NULL, (gpointer)req);
pthread_mutex_unlock(&__requestLock);
+ } else {
+ g_free(req);
}
}
else
requestList = g_list_insert_before(requestList, NULL, (gpointer)req);
pthread_mutex_unlock(&__requestLock);
+ } else {
+ g_free(req);
}
}
else
requestList = g_list_insert_before(requestList, NULL, (gpointer)req);
pthread_mutex_unlock(&__requestLock);
+ } else {
+ g_free(req);
}
}
else
requestList = g_list_insert_before(requestList, NULL, (gpointer)req);
pthread_mutex_unlock(&__requestLock);
+ } else {
+ g_free(req);
}
}
else
requestList = g_list_insert_before(requestList, NULL, (gpointer)req);
pthread_mutex_unlock(&__requestLock);
+ } else {
+ g_free(req);
}
}
else
requestList = g_list_insert_before(requestList, NULL, (gpointer)req);
pthread_mutex_unlock(&__requestLock);
+ } else {
+ g_free(req);
}
-
}
return MAPZEN_ERROR_NONE;
return NULL;
}
-static gboolean __timeout_cb(gpointer data)
+static gboolean __timeout_cb(gpointer user_data)
{
MAP_DEBUG("timeout_cb");
__response_timer_running = true;
std::string url_encode(const std::string& unencoded) {
char* encoded = curl_escape(unencoded.c_str(), static_cast<int>(unencoded.size()));
- MAP_DEBUG("route json after url encoding: " + *encoded);
+ MAP_DEBUG("route json after url encoding: %s", (encoded ? encoded : "(null)"));
std::string encoded_str(encoded);
curl_free(encoded);
return encoded_str;
free(proxyAddress);
}
+ urlOptions.connectionTimeoutMs = 0;
+ urlOptions.requestTimeoutMs = 120000;
+
m_platform = std::make_shared<Tangram::TizenPlatform>(urlOptions);
m_uiThreadId = syscall(SYS_gettid);
int error = MAPS_ERROR_NONE;
unsigned char *imgData = nullptr;
- const char* styleFormat = "{ style: 'sdk-point-overlay', color: white, size: [%dpx, %dpx], collide: false, anchor: %s, transition: { [show, hide]: { time: 0s } } }";
+ const char styleFormat[] = "{ style: 'sdk-point-overlay', color: white, size: [%dpx, %dpx], collide: false, anchor: %s, transition: { [show, hide]: { time: 0s } } }";
static std::string anchor;
unsigned char r = 0, g = 0, b = 0, a = 0;
int width = 0;
- const char* styleFormat = "{ style: 'ux-route-line-overlay', color: [%d, %d, %d, %d], width: %dpx, order: 500 }";
+ const char styleFormat[] = "{ style: 'ux-route-line-overlay', color: [%d, %d, %d, %d], width: %dpx, order: 500 }";
do {
error = maps_view_object_polyline_get_color(object, &r, &g, &b, &a);
int error = MAPS_ERROR_NONE;
Tangram::Coordinates coords = {};
unsigned char r = 0, g = 0, b = 0, a = 0;
- const char* styleFormat = "{ style: 'polygons', color: [%d, %d, %d, %d] }";
+ const char styleFormat[] = "{ style: 'polygons', color: [%d, %d, %d, %d] }";
do {
error = maps_view_object_polygon_get_fill_color(object, &r, &g, &b, &a);