Skip to content

Instantly share code, notes, and snippets.

@weiland
Created April 27, 2022 10:02
Show Gist options
  • Save weiland/698d823d2cf0b4079bba11694cc23185 to your computer and use it in GitHub Desktop.
Save weiland/698d823d2cf0b4079bba11694cc23185 to your computer and use it in GitHub Desktop.
wifi.normandie.fr in-train Wifi
// https://wifi.normandie.fr/router/api/train/circulation
{
"number": "3105",
"circulationCode": "66979ae819749c3a785adc4e657a3fbe",
"origin": {
"name": "Paris Saint-Lazare",
"code": "OCE87384008"
},
"destination": {
"name": "Le Havre",
"code": "OCE87413013"
},
"stopList": {
"stops": [
{
"departure": {
"date": "2022-04-26T08:40:00+02:00",
"realDate": "2022-04-26T08:40:00+02:00"
},
"location": {
"name": "Paris Saint-Lazare",
"code": "OCE87384008",
"coordXLng": 2.325331,
"coordYLat": 48.876242,
"rrCode": "FRPSL",
"multiModalIndicator": true
},
"track": {
"number": "17"
},
"progress": {
"progressPercentage": 60.977777777777774,
"traveledDistance": 61704.6149500377,
"remainingDistance": 53298.92130228783
},
"deletion": false
},
{
"departure": {
"date": "2022-04-26T09:58:00+02:00",
"realDate": "2022-04-26T09:58:00+02:00"
},
"arrival": {
"date": "2022-04-26T09:55:00+02:00",
"realDate": "2022-04-26T09:55:00+02:00"
},
"location": {
"name": "Rouen Rive Droite",
"code": "OCE87411017",
"coordXLng": 1.0941025614738467,
"coordYLat": 49.448663137401724,
"rrCode": "FRURD",
"multiModalIndicator": true
},
"progress": {
"progressPercentage": 0,
"traveledDistance": 0,
"remainingDistance": 31363.61405746713
},
"deletion": false
},
{
"departure": {
"date": "2022-04-26T10:23:00+02:00",
"realDate": "2022-04-26T10:23:00+02:00"
},
"arrival": {
"date": "2022-04-26T10:22:00+02:00",
"realDate": "2022-04-26T10:22:00+02:00"
},
"location": {
"name": "Yvetot",
"code": "OCE87413385",
"coordXLng": 0.7501387596130372,
"coordYLat": 49.6221151709853,
"rrCode": "FRYVE",
"multiModalIndicator": true
},
"track": {
"number": "1"
},
"progress": {
"progressPercentage": 0,
"traveledDistance": 0,
"remainingDistance": 24003.408918330642
},
"deletion": false
},
{
"departure": {
"date": "2022-04-26T10:36:30+02:00",
"realDate": "2022-04-26T10:36:30+02:00"
},
"arrival": {
"date": "2022-04-26T10:35:30+02:00",
"realDate": "2022-04-26T10:35:30+02:00"
},
"location": {
"name": "Bréauté - Beuzeville",
"code": "OCE87413344",
"coordXLng": 0.417489,
"coordYLat": 49.603396,
"rrCode": "FRBTB",
"multiModalIndicator": true
},
"track": {
"number": "1"
},
"progress": {
"progressPercentage": 0,
"traveledDistance": 0,
"remainingDistance": 24400.829125301905
},
"deletion": false
},
{
"arrival": {
"date": "2022-04-26T10:50:30+02:00",
"realDate": "2022-04-26T10:50:30+02:00"
},
"location": {
"name": "Le Havre",
"code": "OCE87413013",
"coordXLng": 0.12464359402656557,
"coordYLat": 49.49262368985462,
"rrCode": "FRAEZ",
"multiModalIndicator": true
},
"deletion": false
}
],
"stopsNumber": 3
},
"delay": false
}
// https://wifi.normandie.fr/router/api/train/gps
{
"success": true,
"fix": 8,
"timestamp": 1650957980,
"latitude": 49.070141667,
"longitude": 1.51737,
"altitude": 18.69,
"speed": 36.165,
"heading": 329.3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment