forked from Olav63/outils_OSM
factorisation de la requête stationnement non public
This commit is contained in:
parent
e9b36bbbbd
commit
8eeea16aae
@ -73,20 +73,21 @@ CHAMPS_ADRESSE = {
|
|||||||
"api_adresse:properties:street": {"export_json": "Non", "FR": "rue_etalab"},
|
"api_adresse:properties:street": {"export_json": "Non", "FR": "rue_etalab"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# pylint: disable=C0301
|
||||||
|
STATIONNEMENT_NON_PUBLIC_REQ = r'nwr["amenity"="bicycle_parking"]["access"~"(no|permit|private|customers|permissive)"](area:aire_de_recherche);'
|
||||||
REQS.append(
|
REQS.append(
|
||||||
Requete(
|
Requete(
|
||||||
"stationnements_velos_publics",
|
"stationnements_velos_non_publics",
|
||||||
# pylint: disable=C0301
|
STATIONNEMENT_NON_PUBLIC_REQ,
|
||||||
r'nwr["amenity"="bicycle_parking"](area:aire_de_recherche); - nwr["amenity"="bicycle_parking"]["access"~"(no|permit|private|customers|permissive)"](area:aire_de_recherche);',
|
|
||||||
dict(CHAMPS_STATIONNEMENT, **CHAMPS_ADRESSE),
|
dict(CHAMPS_STATIONNEMENT, **CHAMPS_ADRESSE),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
REQS.append(
|
REQS.append(
|
||||||
Requete(
|
Requete(
|
||||||
"stationnements_velos_non_publics",
|
"stationnements_velos_publics",
|
||||||
# pylint: disable=C0301
|
# pylint: disable=C0301
|
||||||
r'nwr["amenity"="bicycle_parking"]["access"~"(no|permit|private|customers|permissive)"](area:aire_de_recherche);',
|
rf'nwr["amenity"="bicycle_parking"](area:aire_de_recherche); - {STATIONNEMENT_NON_PUBLIC_REQ}',
|
||||||
dict(CHAMPS_STATIONNEMENT, **CHAMPS_ADRESSE),
|
dict(CHAMPS_STATIONNEMENT, **CHAMPS_ADRESSE),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user