Fix to set origin and destination when routing with waypoints 99/131899/2 accepted/tizen/unified/20170602.153420 submit/tizen/20170531.072013
authorchanywa <cbible.kim@samsung.com>
Wed, 31 May 2017 06:32:57 +0000 (15:32 +0900)
committerSeechan Kim <cbible.kim@samsung.com>
Wed, 31 May 2017 06:48:25 +0000 (06:48 +0000)
Change-Id: If8be83961d928dd50ab3ae0b1f8c8ba536581fd4

maps-plugin-here.changes
packaging/maps-plugin-here.spec
src/here_route.cpp

index 96316db..038cf23 100644 (file)
@@ -1,3 +1,8 @@
+[Version]   maps-plugin-here_0.3.22
+[Date]      31 May 2017
+[Title]     Fix to set origin and destination when routing with waypoints.
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
 [Version]   maps-plugin-here_0.3.21
 [Date]      21 Apr 2017
 [Title]     Adds app id of XamarinFormsMaps.Tests
index 60a8920..8408684 100644 (file)
@@ -1,6 +1,6 @@
 Name:       maps-plugin-here
 Summary:    Tizen HERE Maps Plug-in Library
-Version:    0.3.21
+Version:    0.3.22
 Release:    1
 Group:      Location/Libraries
 License:    Apache-2.0 and HERE
index 8ea6c75..20f4392 100644 (file)
@@ -108,6 +108,13 @@ here_error_e HereRoute::PrepareWaypoint(const maps_coordinates_h* hWaypointList,
 
        m_pQuery->SetWaypoints(hereCoordList);
 
+       /* Set origin and destination with the first and last elements of coordinates list. */
+       maps_coordinates_destroy(m_aOriginCoord);
+       maps_coordinates_destroy(m_aDestinationCoord);
+
+       maps_coordinates_clone(hWaypointList[0], &m_aOriginCoord);
+       maps_coordinates_clone(hWaypointList[nWaypointNum-1], &m_aDestinationCoord);
+
        return HERE_ERROR_NONE;
 }