#CACHE{0} [(#REM)
/*******************************************************************************\
* BIODIV, plugin et squelette pour SPIP - https://www.spip.net/ *
* dédié à la gestion d'observations naturalistes *
* *
* Copyright (C) 2008-2024 Renaud LAURETTE *
* *
* BIODIV a été développé initialement pour le projet Biodiv.Balma de l'APCVEB *
* (Association de Protection du Cadre de Vie et de l'Environnement balmanais) *
* voir Biodiv.Balma : https://balma.biodiv.fr/ *
* voir APCVEB : https://apcveb.fr/ *
* *
* Ce programme est un logiciel libre distribué sous licence GNU/GPL. *
* Pour plus de détails voir les fichier COPYING.txt et LICENCE-BIODIV.md *
\*******************************************************************************/
]
#SET{gobs,#ARRAY}
[(#AUTORISER{debusquer,observation,#ID_OBSERVATION}|oui) #SET{gobs,#GET{gobs}|push{#ID_OBSERVATION}}]
{
"type": "Feature",
"geometry": {"type": "Point", "coordinates": [#LNG, #LAT]},
"properties": {
"type": "observation",
"id": [(#ID_OBSERVATION)],
"confidentiel": "#DISCRET",
"titre": [(#TITRE|json_encode)],
"url": [(#URL_OBSERVATION{#ID_OBSERVATION}|url_absolue|json_encode)],
"auteur": [(#MODELE{observation_auteur}{id_observation=#ID_OBSERVATION}|json_encode)],
"date": [(#DATE_OBS|affdate{'d/m/Y'}|json_encode)],
"type_obs": [(#TYPE_OBS|json_encode)],
"espece": [(#ESPECE|json_encode)],
"cd_ref": #CD_REF0/B_tx>,
"adresse": [(#ADRESSE|json_encode)],
"commune" : [(#COMMUNE|json_encode)],
"insee": [(#INSEE|intval)],
"quantite" : [(#QUANTITE)],
"popupContent":[(#MODELE{observation_marker}{id_observation}|json_encode)]
}
}