Module: nagvis Branch: master Commit: 8dc1c52b7753ff6ccb495e9e36e35dffb971bc0a URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=8dc1c52b7753ff6ccb495e9e36e35dffb971bc0a
Author: Roman Kyrylych <[email protected]> Date: Tue Aug 18 12:25:52 2009 +0300 gmap: Fixed Google Maps key retrieval in Geocode class Signed-off-by: Roman Kyrylych <[email protected]> --- share/netmap/Geocode.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/share/netmap/Geocode.php b/share/netmap/Geocode.php index 4211c82..19f0c54 100644 --- a/share/netmap/Geocode.php +++ b/share/netmap/Geocode.php @@ -30,8 +30,9 @@ class Geocode public function resolve($address) { $locations = array(); + $settings = Settings::load(); - $request_url = 'http://maps.google.com/maps/geo?output=xml&key=' . Settings::getKey() + $request_url = 'http://maps.google.com/maps/geo?output=xml&key=' . $settings->googleMapsKey . '&sensor=false&oe=utf8&q=' . urlencode($address); if (($xml = @simplexml_load_file($request_url)) === FALSE) throw new Exception('Cannot connect to Google Maps'); ------------------------------------------------------------------------------ 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
