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

Author: unknown <[email protected]>
Date:   Fri Jul 31 13:46:56 2009 +0300

gmap: Fixed silly 2-char truncation of address when geocoding

Signed-off-by: unknown <[email protected]>

---

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

diff --git a/share/netmap/Geocode.php b/share/netmap/Geocode.php
index 7e422d6..94b0341 100644
--- a/share/netmap/Geocode.php
+++ b/share/netmap/Geocode.php
@@ -45,8 +45,8 @@ class Geocode
                                {
                                        $coordinates = explode(',', 
(string)$placemark->Point->coordinates);
                                        $locations[] = array(
-                                               'point' => ($coordinates[1] . 
',' . $coordinates[0]),
-                                               'address' => 
substr((string)$placemark->address, 0, -2)
+                                               'point' =>  ($coordinates[1] . 
',' . $coordinates[0]),
+                                               'address' 
=>(string)$placemark->address
                                        );
                                }
                                break;


------------------------------------------------------------------------------
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