Module: nagvis
Branch: master
Commit: cdac0f93c1f6aa92e08d49a85e353c3ecc04c2af
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=cdac0f93c1f6aa92e08d49a85e353c3ecc04c2af

Author: Roman Kyrylych <[email protected]>
Date:   Thu Aug 13 18:43:03 2009 +0300

gmap: Removed obsoleted *Key() methods from Geocode

Signed-off-by: Roman Kyrylych <[email protected]>

---

 share/netmap/Geocode.php |   18 +-----------------
 1 files changed, 1 insertions(+), 17 deletions(-)

diff --git a/share/netmap/Geocode.php b/share/netmap/Geocode.php
index f8e72bf..4211c82 100644
--- a/share/netmap/Geocode.php
+++ b/share/netmap/Geocode.php
@@ -31,7 +31,7 @@ class Geocode
        {
                $locations = array();
 
-               $request_url = 
'http://maps.google.com/maps/geo?output=xml&key=' . $this->getKey()
+               $request_url = 
'http://maps.google.com/maps/geo?output=xml&key=' . Settings::getKey()
                        . '&sensor=false&oe=utf8&q=' . urlencode($address);
                if (($xml = @simplexml_load_file($request_url)) === FALSE)
                        throw new Exception('Cannot connect to Google Maps');
@@ -68,22 +68,6 @@ class Geocode
 
                return $locations;
        }
-
-       public function getKey()
-       {
-               if (($key = file_get_contents('GoogleMaps.key')) !== FALSE)
-                       return trim($key);
-               else
-                       throw new Exception('Could not read GoogleMaps.key');
-       }
-
-       public function saveKey($key)
-       {
-               if (file_put_contents('GoogleMaps.key', $key) !== FALSE)
-                       return;
-               else
-                       throw new Exception('Could not write GoogleMaps.key');
-       }
 }
 
 ?>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to