summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-06-11 08:53:22 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-06-11 08:53:22 (GMT)
commit029c253a0bf55b2c366909f444cfe646d8cae9cd (patch)
tree13d9d75dadd1e17c3e2968fd27a9d7ef013e587a
parenta707b8a80ea5673c8f7a9afb4726d1d6c34b6dba (diff)
downloadcombo-plugin-gnm-029c253a0bf55b2c366909f444cfe646d8cae9cd.zip
combo-plugin-gnm-029c253a0bf55b2c366909f444cfe646d8cae9cd.tar.gz
combo-plugin-gnm-029c253a0bf55b2c366909f444cfe646d8cae9cd.tar.bz2
settings: declare new tiles (#32985)v5.1
-rw-r--r--debian/50gnm.py73
1 files changed, 73 insertions, 0 deletions
diff --git a/debian/50gnm.py b/debian/50gnm.py
index 224cf86..df2ba0f 100644
--- a/debian/50gnm.py
+++ b/debian/50gnm.py
@@ -361,6 +361,72 @@ JSON_CELL_TYPES = {
"name": "Statistiques tuiles",
"url": "{{portal_url}}gnm/stats/",
},
+ "parkingtr": {
+ "url": "https://%(data_username)s:%(data_password)s@download.data.grandlyon.com/wfs/rdata?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=pvo_patrimoine_voirie.pvoparkingtr&filter=<Filter><PropertyIsEqualTo><PropertyName>pkgid</PropertyName><Literal>[pkgid]</Literal></PropertyIsEqualTo></Filter>" % DATA_CREDENTIALS,
+ "cache_duration": 86400,
+ "force_async": False,
+ "name": u"Parking",
+ "form": [
+ {
+ "varname": "pkgid",
+ "type": "string",
+ "label": "Identifiant"
+ }
+ ]
+ },
+ "parc-velo": {
+ "url": "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=pvo_patrimoine_voirie.pvostationnementvelo&filter=<Filter><PropertyIsEqualTo><PropertyName>gid</PropertyName><Literal>[gid]</Literal></PropertyIsEqualTo></Filter>",
+ "cache_duration": 86400,
+ "force_async": False,
+ "name": u"Parc de stationnement vélos",
+ "form": [
+ {
+ "varname": "gid",
+ "type": "string",
+ "label": "Identifiant"
+ }
+ ]
+ },
+ "autopartage": {
+ "url": "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=pvo_patrimoine_voirie.pvostationautopartage&filter=<Filter><PropertyIsEqualTo><PropertyName>gid</PropertyName><Literal>[gid]</Literal></PropertyIsEqualTo></Filter>",
+ "cache_duration": 86400,
+ "force_async": False,
+ "name": u"Autopartage",
+ "form": [
+ {
+ "varname": "gid",
+ "type": "string",
+ "label": "Identifiant"
+ }
+ ]
+ },
+ "stationnement-pmr": {
+ "url": "https://download.data.grandlyon.com/wfs/grandlyon?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=vdl_deplacements.emplacement_pmr&filter=<Filter><PropertyIsEqualTo><PropertyName>gid</PropertyName><Literal>[gid]</Literal></PropertyIsEqualTo></Filter>",
+ "cache_duration": 86400,
+ "force_async": False,
+ "name": u"Stationnement réglementé pour les PMR",
+ "form": [
+ {
+ "varname": "gid",
+ "type": "string",
+ "label": "Identifiant"
+ }
+ ]
+ },
+ "evenement-routier": {
+ "url": "https://%(data_username)s:%(data_password)s@download.data.grandlyon.com/wfs/rdata?SERVICE=WFS&VERSION=2.0.0&outputformat=GEOJSON&request=GetFeature&typename=pvo_patrimoine_voirie.pvoevenement&filter=<Filter><PropertyIsEqualTo><PropertyName>id</PropertyName><Literal>[id]</Literal></PropertyIsEqualTo></Filter>" % DATA_CREDENTIALS,
+ "cache_duration": 86400,
+ "force_async": False,
+ "name": u"Evenement routier",
+ "form": [
+ {
+ "varname": "id",
+ "type": "string",
+ "label": "Identifiant"
+ }
+ ]
+ },
+
}
COMBO_ASSET_SLOTS = {
@@ -381,6 +447,8 @@ PRODUCER_LABELS = {
'velov': u"Velo'v",
'vivrou': u"Vivrou",
'grandlyon': u'Grand Lyon',
+ 'bluely': u"Bluely",
+ 'citiz-lpa': u"Citiz LPA",
}
COLLECTIVITY_LABELS = {
@@ -460,12 +528,17 @@ tiles = [
('donnerie', u"Donnerie"),
('mairie', u"Mairie"),
('mdr', u"Maison du Rhône"),
+ ('parc-velo', u"Parc vélo"),
('piscine', u"Piscine"),
('pollen', u"Pollen"),
('silo-a-verre', u'Silo à verre'),
('taxi', u"Taxi"),
('tcl', u"TCL"),
('velov', u"Velo'v"),
+ ('parkingtr', u"Parking"),
+ ('autopartage', u"Autopartage"),
+ ('evenement-routier', u"Événement routier"),
+ ('pmr', u"Stationnement PMR"),
]
for tile, tile_label in tiles: