Changeset 1409 for trunk/wifidog-auth/wifidog/classes/AbstractGeocoder.php
- Timestamp:
- 07/26/09 12:25:29 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/AbstractGeocoder.php
r1013 r1409 68 68 // Implementation attributes 69 69 private $endpoint_url; 70 private $APIKey; 70 71 // This value is only used to prevent from running to same query twice 71 72 private $execute_query = true; 72 73 73 74 // Factory method hash map 74 private static $implementations_map = array ("Canada" => "GeocoderCanada", "USA" => "GeocoderUsa" );75 private static $implementations_map = array ("Canada" => "GeocoderCanada", "USA" => "GeocoderUsa", "UK" => "GeocoderYahooGlobal", "Earth" => "GeocoderGoogleGlobal"); 75 76 76 77 /** Returns a list of countries for which we provide a geocoder implementation … … 205 206 $this->execute_query = false; 206 207 } 208 209 protected function setAPIKey($APIKey) 210 { 211 $this->APIKey = $APIKey; 212 } 213 214 public function getAPIKey() 215 { 216 return $this->APIKey; 217 } 218 207 219 208 220 abstract public function validateAddress();
