2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 /// Route Maneuver information, used in Route Search requests
24 /// <since_tizen>3</since_tizen>
25 public class RouteManeuver
27 private Interop.RouteDirection _direction;
28 private Interop.RouteTurnType _turntype;
29 private Geocoordinates _coordinates;
31 private string _instruction;
32 private string _locale;
33 private int _timeToNextInstruction;
34 private double _distanceToNextInstruction;
36 internal RouteManeuver(Interop.RouteManeuverHandle handle)
38 _direction = handle.Direction;
39 _turntype = handle.TurnType;
40 _coordinates = new Geocoordinates(handle.Coordinates);
41 _road = handle.RoadName;
42 _instruction = handle.Instruction;
43 _locale = handle.Locale;
44 _timeToNextInstruction = handle.TimeToNextInstruction;
45 _distanceToNextInstruction = handle.DistanceToNextInstruction;
49 /// Gets direction type for this maneuver.
51 /// <since_tizen>3</since_tizen>
52 public DirectionType Direction { get { return (DirectionType)_direction; } }
55 /// Gets turn type for this maneuver.
57 /// <since_tizen>3</since_tizen>
58 public TurnInstruction Turn { get { return (TurnInstruction)_turntype; } }
61 /// Gets a geographical coordinates position for this maneuver.
63 /// <since_tizen>3</since_tizen>
64 public Geocoordinates Position { get { return _coordinates; } }
67 /// Gets a name of the road for this maneuver.
69 /// <since_tizen>3</since_tizen>
70 public string Road { get { return _road; } }
73 /// Gets an instruction text for this maneuver.
75 /// <since_tizen>3</since_tizen>
76 public string Instruction { get { return _instruction; } }
79 /// Gets a locale for this maneuver.
81 /// <since_tizen>3</since_tizen>
82 public string Locale { get { return _locale; } }
85 /// Gets time to next instruction for this maneuver.
87 /// <since_tizen>3</since_tizen>
88 public int TimeToNextInstruction { get { return _timeToNextInstruction; } }
91 /// Gets distance to next instruction for this maneuver.
93 /// <since_tizen>3</since_tizen>
94 public double DistanceToNextInstruction { get { return _distanceToNextInstruction; } }