-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathcommonConfBuilder.ts
69 lines (67 loc) · 1.92 KB
/
commonConfBuilder.ts
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
import type { ManageTrainSchedulePathProperties } from 'applications/operationalStudies/types';
import type { PathStep } from 'reducers/osrdconf/types';
export default function commonConfBuilder() {
return {
buildPathSteps: (): PathStep[] => [
{
uic: 474007,
id: 'brest',
locked: true,
coordinates: [48.38819835024553, -4.478289762812405],
},
{
track: '697841c6-6667-11e3-81ff-01f464e0362d',
offset: 233404,
id: 'rennes',
coordinates: [48.10326700633057, -1.6719908615098822],
positionOnPath: 249234823,
},
{
track: '60ca8dda-6667-11e3-81ff-01f464e0362d',
offset: 416345,
id: 'lemans',
coordinates: [47.99542250806296, 0.1918181738752042],
positionOnPath: 411716565,
},
{
track: '63c905ee-6667-11e3-81ff-01f464e0362d',
offset: 719258,
id: 'paris',
coordinates: [48.904852473668086, 2.4369545094357736],
positionOnPath: 671401971,
},
{
operational_point: 'strasbourg',
id: 'strasbourg',
locked: true,
coordinates: [48.58505541984412, 7.73387081978364],
},
],
buildPathProperties: (): ManageTrainSchedulePathProperties => ({
manchetteOperationalPoints: [],
electrifications: {
boundaries: [84015000],
values: [
{
type: 'electrification',
voltage: '25000V',
},
],
},
geometry: {
type: 'LineString',
coordinates: [
[48.38819835024553, -4.478289762812405],
[48.10326700633057, -1.6719908615098822],
[48.209531, 0.151248],
[48.904852473668086, 2.4369545094357736],
[48.58505541984412, 7.73387081978364],
],
},
suggestedOperationalPoints: [],
allWaypoints: [],
length: 1169926000,
trackSectionRanges: [],
}),
};
}