decode($input); $zoomlevel = (isset($_GET['zoomlevel']) && ctype_digit($_GET['zoomlevel']) ? $_GET['zoomlevel'] : 0); $cX = (isset($_GET['cX']) && ctype_digit($_GET['zoomlevel']) ? $_GET['cX'] : 0); $cY = (isset($_GET['cY']) && ctype_digit($_GET['zoomlevel']) ? $_GET['cY'] : 0); foreach ($value as $key => $val) { foreach ($val as $k => $v) { if ($k != 'x' && $k != 'y') { unset($value[$key][$k]); } } } $output = $json->encode($value); ob_start(); ?> Google Maps Line Saver