Compare commits
2 Commits
c58aecd3b1
...
a3c2662bef
| Author | SHA1 | Date | |
|---|---|---|---|
| a3c2662bef | |||
| 531f8793b9 |
@@ -309,6 +309,12 @@ def download():
|
|||||||
records = data["records"]
|
records = data["records"]
|
||||||
logger.debug(json.dumps(records, indent=4))
|
logger.debug(json.dumps(records, indent=4))
|
||||||
for entry in records:
|
for entry in records:
|
||||||
|
# Le dataset contient aussi des flux NETEX (fichiers XML) qui n'ont pas
|
||||||
|
# la même structure que le GTFS: on les ignore.
|
||||||
|
typeflux = entry["fields"].get("typeflux", "GTFS")
|
||||||
|
if typeflux != "GTFS":
|
||||||
|
logger.debug("Skip %s record: %s", typeflux, entry["fields"]["id"])
|
||||||
|
continue
|
||||||
filename = "./downloads/" + entry["fields"]["fichier"]["filename"]
|
filename = "./downloads/" + entry["fields"]["fichier"]["filename"]
|
||||||
filename_info = filename + ".json"
|
filename_info = filename + ".json"
|
||||||
with open(filename_info, "w") as f:
|
with open(filename_info, "w") as f:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
content='Rennes, Open Data, Horaire, Bus, Métro, Horaires, Temps Réel, OpenStreepMap, Star, Keolis'>
|
content='Rennes, Open Data, Horaire, Bus, Métro, Horaires, Temps Réel, OpenStreepMap, Star, Keolis'>
|
||||||
<meta name='author' content='Benoît Meunier et Karin Meunier'>
|
<meta name='author' content='Benoît Meunier et Karin Meunier'>
|
||||||
<meta name='publisher' content='Benoît Meunier'>
|
<meta name='publisher' content='Benoît Meunier'>
|
||||||
<meta name='copyright' content='Copyright 2015-2024 Benoît Meunier et Karin Meunier'>
|
<meta name='copyright' content='Copyright 2015-2026 Benoît Meunier et Karin Meunier'>
|
||||||
<link rel='apple-touch-icon' sizes='57x57' href='./apple-touch-icon-57x57.png'>
|
<link rel='apple-touch-icon' sizes='57x57' href='./apple-touch-icon-57x57.png'>
|
||||||
<link rel='apple-touch-icon' sizes='60x60' href='./apple-touch-icon-60x60.png'>
|
<link rel='apple-touch-icon' sizes='60x60' href='./apple-touch-icon-60x60.png'>
|
||||||
<link rel='apple-touch-icon' sizes='72x72' href='./apple-touch-icon-72x72.png'>
|
<link rel='apple-touch-icon' sizes='72x72' href='./apple-touch-icon-72x72.png'>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @file ouestmonbus.com main source file.
|
* @file ouestmonbus.com main source file.
|
||||||
*
|
*
|
||||||
* @copyright Benoît Meunier & Karin Meunier - 2015-2024
|
* @copyright Benoît Meunier & Karin Meunier - 2015-2026
|
||||||
*
|
*
|
||||||
* @license
|
* @license
|
||||||
* ouestmonbus.com is free software: you can redistribute it and/or modify
|
* ouestmonbus.com is free software: you can redistribute it and/or modify
|
||||||
@@ -410,7 +410,7 @@ OuestmonbusApp.prototype.initMap = function () {
|
|||||||
|
|
||||||
// Ajout des mentions légals
|
// Ajout des mentions légals
|
||||||
var legal = L.control.attribution({
|
var legal = L.control.attribution({
|
||||||
prefix: "<div id='legal_attribution'>© 2015-2024 <a href='https://ouestmonbus.com'>ouestmonbus.com</a>"
|
prefix: "<div id='legal_attribution'>© 2015-2026 <a href='https://ouestmonbus.com'>ouestmonbus.com</a>"
|
||||||
}).addAttribution("<a href='http://osm.org/copyright'>OpenStreetMap</a> | <a href='https://data.explore.star.fr/page/home/'>Data Keolis Rennes Métropole</a></div>");
|
}).addAttribution("<a href='http://osm.org/copyright'>OpenStreetMap</a> | <a href='https://data.explore.star.fr/page/home/'>Data Keolis Rennes Métropole</a></div>");
|
||||||
legal.setPosition("bottomright");
|
legal.setPosition("bottomright");
|
||||||
legal.addTo(this.map);
|
legal.addTo(this.map);
|
||||||
|
|||||||
Reference in New Issue
Block a user