Show
Ignore:
Timestamp:
07/26/09 12:25:29 (3 years ago)
Author:
networkfusion
Message:

* Addded New Geocoders Yahoo and Google.
* Geocoder now defaults to google if no country specific
Geocoder is found (in future, this will be made selectable by network)
* Fixed Postcode search on Find Hotspot Map #436
* Added search for user by email closes #417
* Added validation to networkID to stop database errors, closes
#458

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/AbstractGeocoder.php

    r1013 r1409  
    6868    // Implementation attributes 
    6969    private $endpoint_url; 
     70    private $APIKey; 
    7071    // This value is only used to prevent from running to same query twice 
    7172    private $execute_query = true; 
    7273 
    7374    // 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"); 
    7576 
    7677    /** Returns a list of countries for which we provide a geocoder implementation 
     
    205206        $this->execute_query = false; 
    206207    } 
     208 
     209    protected function setAPIKey($APIKey) 
     210    { 
     211        $this->APIKey = $APIKey; 
     212    } 
     213 
     214    public function getAPIKey() 
     215    { 
     216        return $this->APIKey; 
     217    } 
     218 
    207219 
    208220    abstract public function validateAddress();