From 029c253a0bf55b2c366909f444cfe646d8cae9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 11 Jun 2019 10:53:22 +0200 Subject: [PATCH] settings: declare new tiles (#32985) --- debian/50gnm.py | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) 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=pkgid[pkgid]" % 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=gid[gid]", + "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=gid[gid]", + "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=gid[gid]", + "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=id[id]" % 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: