summaryrefslogtreecommitdiff
path: root/location/map-service/location-route-ext.h
blob: 55c2b3adcdbb07028171d34eb68393c546e4616e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
/*
 * libslp-location
 *
 * Copyright (c) 2010-2013 Samsung Electronics Co., Ltd. All rights reserved.
 *
 * Contact: Youngae Kang <youngae.kang@samsung.com>, Minjune Kim <sena06.kim@samsung.com>
 *          Genie Kim <daejins.kim@samsung.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __LOCATION_ROUTE_EXT_H__
#define __LOCATION_ROUTE_EXT_H__

#include <location-map-types.h>

G_BEGIN_DECLS

/**
 * @file location-route-ext.h
 * @brief This file contains the extensional definitions and structures related to Route.
 */
/**
 * @addtogroup LocationMapServiceRoute
 * @{
 * @defgroup LocationMapServiceRouteExt Location Route Ext
 * @brief This provides Location Route Ext APIs.
 * @addtogroup LocationMapServiceRouteExt
 * @{
 */

/**
 * @brief Set the origin #LocationPosition of #LocationRoute
 * @remarks The service provider should support route service.\n
 *	The previous origin of the #LocationRoute will be removed if an origin is NULL.
 * @pre None.
 * @post None.
 * @param [in] route - a #LocationRoute
 * @param [in] origin - a #LocationPosition
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_get_origin
 */
gboolean location_route_set_origin (LocationRoute *route, const LocationPosition* origin);

/**
 * @brief Set the destication #LocationPosition of #LocationRoute
 * @remarks The service provider should support route service.\n
 *	The previous destination of the #LocationRoute will be removed if an destination is NULL.
 * @pre None.
 * @post None.
 * @param [in] route - a #LocationRoute
 * @param [in] destination - a #LocationPosition
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_get_destination
 */
gboolean location_route_set_destination (LocationRoute *route, const LocationPosition* destination);

/**
 * @brief Set the bounding box #LocationBoundary of #LocationRoute
 * @remarks The service provider should support route service.\n
 *	The previous bbox of the #LocationRoute will be removed if an bbox is NULL.
 * @pre None.
 * @post None.
 * @param [in] route - a #LocationRoute
 * @param [in] bbox - a #LocationBoundary
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_get_bounding_box
 */
gboolean location_route_set_bounding_box (LocationRoute *route, const LocationBoundary* bbox);
/**
 * @brief Set the distance of #LocationRoute
 * @remarks The service provider should support route service.
 * @pre None.
 * @post None.
 * @param [in] route - a #LocationRoute
 * @param [in] total_distance - gdouble
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_get_total_distance
 */
gboolean location_route_set_total_distance (LocationRoute *route, gdouble total_distance);

/**
 * @brief Set the distance unit of #LocationRoute
 * @remarks The service provider should support route service.\n
 *	The previous distance unit of the #LocationRoute will be removed if an distance_unit is NULL.
 * @pre None.
 * @post None.
 * @param [in] route - a #LocationRoute
 * @param [in] distance_unit - gchar
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_get_distance_unit
 */
gboolean location_route_set_distance_unit (LocationRoute *route, const gchar* distance_unit);

/**
 * @brief Set the duration of #LocationRoute
 * @remarks The service provider should support route service.
 * @pre None.
 * @post None.
 * @param [in] route - a #LocationRoute
 * @param [in] total_duration - glong
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_get_total_duration
 */
gboolean location_route_set_total_duration (LocationRoute *route, glong total_duration);

/**
 * @brief Set the propery value of #LocationRoute
 * @remarks The service provider should support route service.\n
 *	The previous value of the #LocationRoute matching to key will be removed if an value is NULL.
 * @pre None.
 * @post None.
 * @param [in] route - a #LocationRoute
 * @param [in] key - gconstpointer
 * @param [in] value - gconstpointer
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_get_property
 */
gboolean location_route_set_property (LocationRoute *route, gconstpointer key, gconstpointer value);

/**
 * @brief Set the list of segments #LocationRouteSegment of #LocationRoute
 * @remarks The service provider should support route service.\n
 *	The previous route segment of the #LocationRoute will be removed if an segment is NULL.
 * @pre None.
 * @post None.
 * @param [in] route - a #LocationRoute
 * @param [in] segment - a list of #LocationRouteSegment
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_get_route_segment
 */
gboolean location_route_set_route_segment (LocationRoute *route, GList* segment);

/**
 * @brief Set the start point #LocationPosition of #LocationRouteSegment
 * @remarks The service provider should support route service.\n
 *	The previous start point of the #LocationRouteSegment will be removed if a start is NULL.
 * @pre None.
 * @post None.
 * @param [in] segment - a #LocationRouteSegment
 * @param [in] start - a #LocationPosition
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_segment_get_start_point
 */
gboolean location_route_segment_set_start_point (LocationRouteSegment *segment, const LocationPosition *start);

/**
 * @brief Set the end point #LocationPosition of #LocationRouteSegment
 * @remarks The service provider should support route service.\n
 *	The previous end point of the #LocationRouteSegment will be removed if an end is NULL.
 * @pre None.
 * @post None.
 * @param [in] segment - a #LocationRouteSegment
 * @param [in] end - a #LocationPosition
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_segment_get_end_point
 */
gboolean location_route_segment_set_end_point (LocationRouteSegment *segment, const LocationPosition *end);

/**
 * @brief Set the bounding box #LocationBoundary of #LocationRouteSegment
 * @remarks The service provider should support route service.\n
 *	The previous bbox of the #LocationRouteSegment will be removed if a bbox is NULL.
 * @pre None.
 * @post None.
 * @param [in] segment - a #LocationRouteSegment
 * @param [in] bbox - a #LocationBoundary
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_segment_get_bounding_box
 */
gboolean location_route_segment_set_bounding_box (LocationRouteSegment *segment, const LocationBoundary *bbox);

/**
 * @brief Set the distance of #LocationRouteSegment
 * @remarks The service provider should support route service.
 * @pre None.
 * @post None.
 * @param [in] segment - a #LocationRouteSegment
 * @param [in] distance - gdouble
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_segment_get_distance
 */
gboolean location_route_segment_set_distance (LocationRouteSegment *segment, gdouble distance);

/**
 * @brief Set the duration of #LocationRouteSegment
 * @remarks The service provider should support route service.
 * @pre None.
 * @post None.
 * @param [in] segment - a #LocationRouteSegment
 * @param [in] duration - glong
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_segment_get_duration
 */
gboolean location_route_segment_set_duration (LocationRouteSegment *segment, glong duration);

/**
 * @brief Set the property value of #LocationRouteSegment
 * @remarks The service provider should support route service.\n
 *	The previous value of the LocationRouteSegment matching to key will be removed if a value is NULL.
 * @pre None.
 * @post None.
 * @param [in] segment - a #LocationRouteSegment
 * @param [in] key - gconstpointer
 * @param [in] value - gconstpointer
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_segment_get_property
 */
gboolean location_route_segment_set_property (LocationRouteSegment *segment, gconstpointer key, gconstpointer value);

/**
 * @brief Set the list of route steps #LocationRouteStep in #LocationRouteSegment
 * @remarks The service provider should support route service.\n
 *	The previous route step of the #LocationRouteSegment will be removed if a step is NULL.
 * @pre None.
 * @post None.
 * @param [in] segment - a #LocationRouteSegment
 * @param [in] step - a list of #locationRouteStep
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_segment_get_route_step
 */
gboolean location_route_segment_set_route_step (LocationRouteSegment *segment, GList* step);

/**
 * @brief Set the start point #LocationPosition of #LocationRouteStep
 * @remarks The service provider should support route service.\n
 *	The previous start point of the #LocationRouteStep will be removed if a start is NULL.
 * @pre None.
 * @post None.
 * @param [in] step - a #LocationRouteStep
 * @param [in] start - a #LocationPosition
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_step_get_start_point
 */
gboolean location_route_step_set_start_point (LocationRouteStep *step, const LocationPosition *start);

/**
 * @brief Set the end point #LocationPosition of #LocationRouteStep
 * @remarks The service provider should support route service.\n
 *	The previous end point of the #LocationRouteStep will be removed if an end is NULL.
 * @pre None.
 * @post None.
 * @param [in] step - a #LocationRouteStep
 * @param [in] end - a #LocationPosition
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_step_get_end_point
 */
gboolean location_route_step_set_end_point (LocationRouteStep *step, const LocationPosition *end);

/**
 * @brief Set the bounding box #LocationBoundary of #LocationRouteStep
 * @remarks The service provider should support route service.\n
 *	The previous bbox of the #LocationRouteStep will be removed if a bbox is NULL.
 * @pre None.
 * @post None.
 * @param [in] step - a #LocationRouteStep
 * @param [in] bbox - a #LocationBoundary
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_step_get_bounding_box
 */
gboolean location_route_step_set_bounding_box (LocationRouteStep *step, const LocationBoundary *bbox);

/**
 * @brief Set the distance of #LocationRouteStep
 * @remarks The service provider should support route service.
 * @pre None.
 * @post None.
 * @param [in] step - a #LocationRouteStep
 * @param [in] distance - gdouble
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_step_get_distance
 */
gboolean location_route_step_set_distance (LocationRouteStep *step, gdouble distance);

/**
 * @brief Set the duration of #LocationRouteStep
 * @remarks The service provider should support route service.
 * @pre None.
 * @post None.
 * @param [in] step - a #LocationRouteStep
 * @param [in] duration - glong
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_step_get_duration
 */
gboolean location_route_step_set_duration (LocationRouteStep *step, glong duration);

/**
 * @brief Set the transport mode of #LocationRouteStep
 * @remarks The service provider should support route service.\n
 *	The previous transport mode of the #LocationRouteStep will be removed if a transport_mode is NULL.
 * @pre None.
 * @post None.
 * @param [in] step - a #LocationRouteStep
 * @param [in] transport_mode - gchar
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_step_get_transport_mode
 */
gboolean location_route_step_set_transport_mode (LocationRouteStep *step, const gchar *transport_mode);

/**
 * @brief Set the instruction of #LocationRouteStep
 * @remarks The service provider should support route service.\n
 *	The previous instruction of the #LocationRouteStep will be removed if an instruction is NULL.
 * @pre None.
 * @post None.
 * @param [in] step - a #LocationRouteStep
 * @param [in] instruction - gchar
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_step_get_instruction
 */
gboolean location_route_step_set_instruction (LocationRouteStep *step, const gchar *instruction);

/**
 * @brief Set the list of geometry #LocationPosition in #LocationRouteStep
 * @remarks The service provider should support route service.\n
 *	The previous geometry of the #LocationRouteStep will be removed if a geometry is NULL.
 * @pre None.
 * @post None.
 * @param [in] step - a #LocationRouteStep
 * @param [in] geometry - a list of #LocationPosition
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_step_get_geometry
 */
gboolean location_route_step_set_geometry (LocationRouteStep *step, GList *geometry);

/**
 * @brief Set the property value of #LocationRouteStep
 * @remarks The service provider should support route service.\n
 *	The previous value of the #LocationRouteStep will be removed if a value is NULL.
 * @pre None.
 * @post None.
 * @param [in] step - a #LocationRouteStep
 * @param [in] key - gconstpointer
 * @param [in] value - gconstpointer
 * @return gboolean
 * @retval  TRUE if success
 * @see location_route_step_get_property
 */
gboolean location_route_step_set_property (LocationRouteStep *step, gconstpointer key, gconstpointer value);

/**
 * @brief Set the distance from start of the route to the  maneuver#LocationRouteManeuver
 * @remarks The service provider should support route service.
 * @pre #location_route_maneuver_new should be called before.
 * @post None.
 * @param [in]  distance - a #guint
 * @param [in]  maneuver - a #LocationRouteManeuver
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_maneuver_get_distance_from_start
 */
gboolean location_route_maneuver_set_distance_from_start(LocationRouteManeuver *maneuver, guint distance);

/**
 * @brief Set the distance from previous_maneuver
 * @remarks The service provider should support route service.
 * @pre #location_route_maneuver_new should be called before.
 * @post None.
 * @param [in]  distance - a #guint
 * @param [in]  maneuver - a #LocationRouteManeuver
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_maneuver_get_distance_from_prev_maneuver
 */
gboolean location_route_maneuver_set_distance_from_prev_maneuver(LocationRouteManeuver *maneuver, guint distance);

/**
 * @brief Set Name of the road this maneuver leads to.
 * @remarks The service provider should support route service.
 * @pre #location_route_maneuver_new should be called before.
 * @post None.
 * @param [in]  road_name - a #road name
 * @param [in]  maneuver - a #LocationRouteManeuver
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_maneuver_get_next_road_name
 */
gboolean location_route_maneuver_set_next_road_name(LocationRouteManeuver *maneuver, const gchar *road_name);

/**
 * @brief Set action to take on the maneuver.
 * @remarks The service provider should support route service.
 * @pre #location_route_maneuver_new should be called before.
 * @post None.
 * @param [in]  action - a #action
 * @param [in]  maneuver - a #LocationRouteManeuver
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_maneuver_get_action
 */
gboolean location_route_maneuver_set_action(LocationRouteManeuver *maneuver, const gchar *action);

/**
 * @brief Set turn to make on the maneuver.
 * @remarks The service provider should support route service.
 * @pre #location_route_maneuver_new should be called before.
 * @post None.
 * @param [in]  turn - a #turn to
 * @param [in]  maneuver - a #LocationRouteManeuver
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_maneuver_get_turn
 */
gboolean location_route_maneuver_set_turn(LocationRouteManeuver *maneuver, const gchar *turn);

/**
 * @brief Set traffic direction on the maneuver.
 * @remarks The service provider should support route service.
 * @pre #location_route_maneuver_new should be called before.
 * @post None.
 * @param [in]  direction - a #TrafficDirection
 * @param [in]  maneuver - a #LocationRouteManeuver
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_maneuver_get_traffic_direction
 */
gboolean location_route_maneuver_set_traffic_direction(LocationRouteManeuver *maneuver, TrafficDirection direction);

/**
 * @brief Set  the angle of the maneuver.
 * @remarks The service provider should support route service.
 * @pre #location_route_maneuver_new should be called before.
 * @post None.
 * @param [in]  angle - a #angle
 * @param [in]  maneuver - a #LocationRouteManeuver
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_maneuver_get_angle
 */
gboolean location_route_maneuver_set_angle(LocationRouteManeuver *maneuver, guint angle);

/**
 * @brief Set the angle at the start of the maneuver.
 * @remarks The service provider should support route service.
 * @pre #location_route_maneuver_new should be called before.
 * @post None.
 * @param [in]  start_angle - a #start angle
 * @param [in]  maneuver - a #LocationRouteManeuver
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_maneuver_get_start_angle
 */
gboolean location_route_maneuver_set_start_angle(LocationRouteManeuver *maneuver, guint start_angle);

/**
 * @brief Set the time at which the maneuver started.
 * @remarks The service provider should support route service.
 * @pre #location_route_maneuver_new should be called before.
 * @post None.
 * @param [in]  time - a #time
 * @param [in]  maneuver - a #LocationRouteManeuver
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_maneuver_get_start_time
 */
gboolean location_route_maneuver_set_start_time(LocationRouteManeuver *maneuver, guint time);

/**
 * @brief set if maneuver starts on a sliproad.
 * @remarks The service provider should support route service.
 * @pre None.
 * @post None.
 * @param [in] maneuver - a #LocationRouteManeuver
 * @param [in] starts_from_sliproad - a #gboolean
 * @return	gboolean
 * @retval TRUE                              if success
 * @see
 */
gboolean location_route_maneuver_set_starts_from_sliproad(LocationRouteManeuver *maneuver, gboolean starts_from_sliproad);

/**
 * @brief set if maneuver leads to a slip road. Sliproad is a road connecting highways to
 * normal roads.
 * @remarks The service provider should support route service.
 * @pre None.
 * @post None.
 * @param [in] maneuver - a #LocationRouteManeuver
 * @param [in] next_is_sliproad - a #gboolean
 * @return	gboolean
 * @retval TRUE      if success
 * @see
 */
gboolean location_route_maneuver_set_next_is_sliproad(LocationRouteManeuver *maneuver, gboolean next_is_sliproad);

/**
 * @brief set if this maneuver is a roundabout taken in the direction opposite to the
 *  normal vehicle traffic.
 * @remarks The service provider should support route service.
 * @pre None.
 * @post None.
 * @param [in] maneuver - a #LocationRouteManeuver
 * @param [in] counter_roundabout - a #gboolean
 * @return	gboolean
 * @retval TRUE if success
 * @see
 */
gboolean location_route_maneuver_set_counter_roundabout(LocationRouteManeuver *maneuver, gboolean counter_roundabout);

/**
 * @brief Set the station name in location route Maneuver.
 * @remarks The service provider should support route service.
 * @pre  #location_route_transit_stop_new should be called before.
 * @post None.
 * @param [in]  station_name - a #station name
 * @param [in]  stop - a #LocationRouteTransitStop
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_transit_get_station_name
 */
gboolean location_route_transit_set_station_name(LocationRouteTransitStop *stop, const gchar *station_name);

/**
 * @brief Set  the  platform level in Location Route  TransitStop.
 * @remarks The service provider should support route service.
 * @pre  #location_route_transit_stop_new should be called before.
 * @post None.
 * @param [in]  level - a #platform level
 * @param [in]  stop - a #LocationRouteTransitStop
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_transit_get_platform_level
 */
gboolean location_route_transit_set_platform_level(LocationRouteTransitStop *stop, gint level);

/**
 * @brief Set   the  coordinates of the platform.
 * @remarks The service provider should support route service.
 * @pre  #location_route_transit_stop_new should be called before.
 * @post None.
 * @param [in]  coordinates - a #LocationPosition
 * @param [in]  stop - a #LocationRouteTransitStop
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_transit_get_platform_coordinates
 */
gboolean location_route_transit_set_platform_coordinates(LocationRouteTransitStop *stop, const LocationPosition *coordinates);

/**
 * @brief Set the coordinates of the station entry/exit.
 * @remarks The service provider should support route service.
 * @pre  #location_route_transit_stop_new should be called before.
 * @post None.
 * @param [in]  eg_coordinates - a #LocationPosition
 * @param [in]  stop - a #LocationRouteTransitStop
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_transit_get_egress_coordinates
 */
gboolean location_route_transit_set_egress_coordinates(LocationRouteTransitStop *stop, const LocationPosition *eg_coordinates);

/**
 * @brief Set the a member of the enumeration form of way .
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  form - a #FormOfWay
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see location_route_element_get_form_of_way
 */
gboolean location_route_element_set_form_of_way(LocationRoadElement *step, FormOfWay form);

/**
 * @brief Set if the road element is plural, otherwise.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in] step - a #LocationRoadElement
 * @param [in] plural - a #gboolean
 * @return	 gboolean
 * @retval TRUE if success
 * @see  None
 */
gboolean location_route_element_set_plural(LocationRoadElement *element, gboolean plural);

/**
 * @brief Set  the name of the road .
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  road_name - a road name
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_road_name
 */
gboolean location_route_element_set_road_name(LocationRoadElement *step, const gchar *road_name);

/**
 * @brief Set  the name  of the route to which the given road element belongs.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  road_name - a road name
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_route_name
 */
gboolean location_route_element_set_route_name(LocationRoadElement *step, const gchar *route_name);

/**
 * @brief Set  the name  of the route to which the given road element belongs.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  speed_limit -  speed limit
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_speed_limit
 */
gboolean location_route_element_set_speed_limit(LocationRoadElement *step, gfloat speed_limit);

/**
 * @brief Set the average speed in m/s.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  average_speed -  average speed
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_average_speed_m_s
 */
gboolean location_route_element_set_average_speed_m_s(LocationRoadElement *step, guint average_speed);

/**
 * @brief Set the value indicating the number of lanes in the given road element.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  num_of_lanes - num of lanes
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_number_of_lanes
 */
gboolean location_route_element_set_number_of_lanes(LocationRoadElement *step, const guint num_of_lanes);

/**
 * @brief set if the road is allowed only for pedestrians.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in] step - a #LocationRoadElement
 * @param [in] pedestrian - a #gboolean
 * @return	gboolean
 * @retval
 * @see  None
 */
gboolean location_route_element_road_element_set_pedestrian(LocationRoadElement *element, gboolean pedestrian);

/**
 * @brief Set if this road element is valid.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in] step - a #LocationRoadElement
 * @param [in] valid - a #gboolean
 * @return	gboolean
 * @retval
 * @see  None
 */
gboolean location_route_element_road_element_set_valid(LocationRoadElement *element, gboolean valid);

/**
 * @brief Set the start time of the road element.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  start_time - start time
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_element_start_time
 */
gboolean location_route_element_set_element_start_time(LocationRoadElement *step, guint start_time);

/**
 * @brief Set the start time of the road element.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  travel_time -travel time
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_element_travel_time
 */
gboolean location_route_element_set_element_travel_time(LocationRoadElement *step, guint travel_time);

/**
 * @brief Set the destination of this run.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  transit_dest -transit dest
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_transit_destination
 */
gboolean location_route_element_set_transit_destination(LocationRoadElement *step, const gchar *transit_dest);

/**
 * @brief Set  the line name.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  line_name -line name
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_transit_line_name
 */
gboolean location_route_element_set_transit_line_name(LocationRoadElement *step, const gchar *line_name);

/**
 * @brief Set name of the operator.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  official_name -official name
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_system_official_name
 */
gboolean location_route_element_set_system_official_name(LocationRoadElement *step, const gchar *official_name);

/**
 * @brief Set the name of the operator in a shorter or  abbreviated version.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  short_name
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_system_short_name
 */
gboolean location_route_element_set_system_short_name(LocationRoadElement *step, const gchar *short_name);

/**
 * @brief Set the type of the line.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  type - a #TransitType
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_transit_type
 */
gboolean location_route_element_set_transit_type(LocationRoadElement *step, TransitType type);

/**
 * @brief Set the type of the line as a string in the public transit
 * operator's vocabulary.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  type_name - a #TransitType
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_transit_type_name
 */
gboolean location_route_element_set_transit_type_name(LocationRoadElement *step, const gchar *type_name);

/**
 * @brief Set the absolute departure time from the station.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  departure_time - departure time
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_transit_departure_time
 */
gboolean location_route_element_set_transit_departure_time(LocationRoadElement *step, guint departure_time);

/**
 * @brief Set the absolute arrival time at the destination.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  arrival_time - arrival time
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_transit_arrival_time
 */
gboolean location_route_element_set_transit_arrival_time(LocationRoadElement *step, guint arrival_time);

/**
 * @brief Set departure station.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  departure_stop - a #LocationRouteTransitStop
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_transit_departure_station
 */
gboolean location_route_element_set_transit_departure_station(LocationRoadElement *step, const LocationRouteTransitStop *departure_stop);

/**
 * @brief Set departure station.
 * @remarks The service provider should support route service.
 * @pre  None.
 * @post None.
 * @param [in]  arrival_stop - a #LocationRouteTransitStop
 * @param [in]  step - a #LocationRoadElement
 * @return gboolean
 * @retval TRUE                              if success
 * @see  location_route_element_get_transit_arrival_station
 */
gboolean location_route_element_set_transit_arrival_station(LocationRoadElement *step, const LocationRouteTransitStop *arrival_stop);

/**
 * @brief Set this lane if the lane is on the route.
 * @remarks None.
 * @pre     #location_init should be called before.\n
 * @post    None.
 * @param [in]  lane - a #LocationRouteLaneInfo
 * @param [in]  pref - a boolean #on_route
 * @see None.
 * @return None
 * @retval None
 */
gboolean location_route_lane_set_is_on_route(LocationRouteLaneInfo *lane, gboolean on_route);

/**
  * @} @}
  */

G_END_DECLS

#endif