|
@@ -2228,10 +2228,10 @@ |
|
|
block discarded – undo |
|
2228
|
2228
|
return array($row->latitude, $row->longitude); |
|
2229
|
2229
|
} |
|
2230
|
2230
|
} |
|
2231
|
|
- //utf8_encode($address) will return only english adress mean it's take only english address. |
|
2232
|
|
- // Remove utf8_encode from urlencode then it'll support all languages(eg. en, ur, chinese, russian, japanese, greek etc.) |
|
|
2231
|
+ //utf8_encode($address) will return only english adress mean it's take only english address. |
|
|
2232
|
+ // Remove utf8_encode from urlencode then it'll support all languages(eg. en, ur, chinese, russian, japanese, greek etc.) |
|
2233
|
2233
|
// $data_location = "https://maps.google.com/maps/api/geocode/json?address=".urlencode(utf8_encode($address)); //Old One just for english |
|
2234
|
|
- $data_location = "https://maps.google.com/maps/api/geocode/json?address=".urlencode($address); // New One for every language. |
|
|
2234
|
+ $data_location = "https://maps.google.com/maps/api/geocode/json?address=".urlencode($address); // New One for every language. |
|
2235
|
2235
|
if ($this->region != "" && strlen($this->region) == 2) { |
|
2236
|
2236
|
$data_location .= "®ion=".$this->region; |
|
2237
|
2237
|
} |
Please login to merge, or discard this patch.