projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79dceea
)
Fixes geocoding query.
author
Stéphane Jacob
<sj@m4x.org>
Fri, 2 Jul 2010 06:36:00 +0000
(08:36 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Fri, 2 Jul 2010 12:03:19 +0000
(14:03 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/geocoding.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/include/geocoding.inc.php
b/include/geocoding.inc.php
index
e23c0ac
..
845a314
100644
(file)
--- a/
include/geocoding.inc.php
+++ b/
include/geocoding.inc.php
@@
-414,9
+414,9
@@
class GMapsGeocoder extends Geocoder {
}
if ($isPseudoCountry) {
- return
$address['text']
;
+ return
implode("\n", array_slice($textLines, 0, -1))
;
}
- return
implode("\n", array_slice($textLines, 0, -1))
;
+ return
$address['text']
;
}
// Search for the lign from the given address that is the closest to the geocoded thoroughfareName