From 7f26f8b6a8edfa55f82723f2dfd768c104f571e3 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sun, 8 Jun 2014 07:40:37 +0100 Subject: [PATCH] website: plugin api - missed removal of these lines from previous commit somehow! --- website/plugin-rpc/tfl/index.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/website/plugin-rpc/tfl/index.php b/website/plugin-rpc/tfl/index.php index 60fd299c..13e1e5c8 100644 --- a/website/plugin-rpc/tfl/index.php +++ b/website/plugin-rpc/tfl/index.php @@ -68,16 +68,7 @@ class Routes { if (!isset($run,$this->routes[$rt][$run])) { $this->routes[$rt][$run] = Array ( 'start' => format_stop($row) ); - // initial bounding box from start lat/lng - $this->routes[$rt][$run]['bbox'] = Array ( 'sw'=> $this->routes[$rt][$run]['start']['location'], 'ne' => $this->routes[$rt][$run]['start']['location'] ); } - $this->routes[$rt][$run]['end'] = format_stop($row); - //extend bounding box by end point lat/lng - $this->routes[$rt][$run]['bbox']['sw']['lat'] = min ( $this->routes[$rt][$run]['bbox']['sw']['lat'], $this->routes[$rt][$run]['end']['location']['lat'] ); - $this->routes[$rt][$run]['bbox']['sw']['lng'] = min ( $this->routes[$rt][$run]['bbox']['sw']['lng'], $this->routes[$rt][$run]['end']['location']['lng'] ); - - $this->routes[$rt][$run]['bbox']['ne']['lat'] = max ( $this->routes[$rt][$run]['bbox']['ne']['lat'], $this->routes[$rt][$run]['end']['location']['lat'] ); - $this->routes[$rt][$run]['bbox']['ne']['lng'] = max ( $this->routes[$rt][$run]['bbox']['ne']['lng'], $this->routes[$rt][$run]['end']['location']['lng'] ); } }