DROP PROCEDURE `getCercanoRadio`//
CREATE DEFINER=`prog2sc`@`localhost`
PROCEDURE `getCercanoRadio`
(IN latitude Double, IN longitude Double, IN tipo_servicio INT)
BEGIN
SET @LAT = latitude;
SET @LON = longitude;
SET @Servicio = tipo_servicio;
SET @point = CONCAT(\'POINT(\',@LAT,\' \',@LON,\')\');
SET @center = GeomFromText(@point);
SET @radius = 0.01;
SET @bbox = CONCAT(\'POLYGON((\',
X(@center) - @radius, \' \', Y(@center) - @radius, \',\',
X(@center) + @radius, \' \', Y(@center) - @radius, \',\',
X(@center) + @radius, \' \', Y(@center) + @radius, \',\',
X(@center) - &#