From: chanywa Date: Wed, 31 May 2017 06:32:57 +0000 (+0900) Subject: Fix to set origin and destination when routing with waypoints X-Git-Tag: submit/tizen/20170531.072013^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F131899%2F2;p=platform%2Fcore%2Flocation%2Fmaps-plugin-here.git Fix to set origin and destination when routing with waypoints Change-Id: If8be83961d928dd50ab3ae0b1f8c8ba536581fd4 --- diff --git a/maps-plugin-here.changes b/maps-plugin-here.changes index 96316db..038cf23 100644 --- a/maps-plugin-here.changes +++ b/maps-plugin-here.changes @@ -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 + [Version] maps-plugin-here_0.3.21 [Date] 21 Apr 2017 [Title] Adds app id of XamarinFormsMaps.Tests diff --git a/packaging/maps-plugin-here.spec b/packaging/maps-plugin-here.spec index 60a8920..8408684 100644 --- a/packaging/maps-plugin-here.spec +++ b/packaging/maps-plugin-here.spec @@ -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 diff --git a/src/here_route.cpp b/src/here_route.cpp index 8ea6c75..20f4392 100644 --- a/src/here_route.cpp +++ b/src/here_route.cpp @@ -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; }