@@ 90-96 (lines=7) @@ | ||
87 | if (!$output) { |
|
88 | $output = $this->output; |
|
89 | } |
|
90 | if (!$address) { |
|
91 | return ar_error::raiseError('MOD_GEO: No address given to getRawData', 'geo_1'); |
|
92 | } else if ($this->getter) { |
|
93 | return $this->getter->getRawData($address, $output); |
|
94 | } else { |
|
95 | return ar_error::raiseError('MOD_GEO: GEO module not initialized, call init method first', 'geo_2'); |
|
96 | } |
|
97 | } |
|
98 | ||
99 | /** |
|
@@ 106-112 (lines=7) @@ | ||
103 | */ |
|
104 | ||
105 | public function getLatLong($address) { |
|
106 | if (!$address) { |
|
107 | return ar_error::raiseError('MOD_GEO: No address given to getLatLong', 'geo_5'); |
|
108 | } else if ($this->getter) { |
|
109 | return $this->getter->getLatLong($address); |
|
110 | } else { |
|
111 | return ar_error::raiseError('MOD_GEO: GEO module not initialized, call init method first', 'geo_2'); |
|
112 | } |
|
113 | } |
|
114 | ||
115 | /** |