From bc1f346eae7631004e3a8ca1e4f46c1d055f0294 Mon Sep 17 00:00:00 2001 From: humano Date: Tue, 28 Oct 2014 10:26:41 -0500 Subject: [PATCH] Implemetacion de api basada en json --- milfs/api.json | 88 -------------------------------------------------- milfs/api.php | 15 +++++++++ 2 files changed, 15 insertions(+), 88 deletions(-) delete mode 100644 milfs/api.json create mode 100644 milfs/api.php diff --git a/milfs/api.json b/milfs/api.json deleted file mode 100644 index 13abf68..0000000 --- a/milfs/api.json +++ /dev/null @@ -1,88 +0,0 @@ -$lat,'lon'=>$lon); - - $formulario = formulario_imprimir($perfil,$row[control],'full'); - $propiedades["name"] ="
$formulario
"; - - //formulario_imprimir($id,$control) - //$marcador["zoom"] = $zoom; - $geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK).",\"properties\":".json_encode($propiedades,JSON_NUMERIC_CHECK)."},"; - $features[] = $marcador; - //$resultado .= "
  • $row[tipo]
    $row[title]
    $row[description]
  • "; - - $id++; - } - -} -//-75.58295 6.25578 16 - -//encode and output jsonObject -header('Content-Type: application/json'); -//echo $consulta; -$resultado = " { \"type\": \"FeatureCollection\", - \"features\": "; -$resultado .= json_encode($features,JSON_NUMERIC_CHECK); -$resultado .= "}"; -//echo $resultado; -$geometria = substr("$geometria",0,-1); -$geometria = "{ - \"type\": \"FeatureCollection\", - \"features\": [$geometria ]}"; -echo $geometria; - -?> \ No newline at end of file diff --git a/milfs/api.php b/milfs/api.php new file mode 100644 index 0000000..830c88c --- /dev/null +++ b/milfs/api.php @@ -0,0 +1,15 @@ + \ No newline at end of file