コード例 #1
0
ファイル: google.php プロジェクト: LuccaCaldas/anahita
 /**
  * Initializes the options for the object.
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param 	object 	An optional KConfig object with configuration options.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('name' => 'google', 'version' => '3', 'url' => 'https://maps.googleapis.com/maps/api/geocode/json?', 'key' => get_config_value('locations.service_key', null)));
     parent::_initialize($config);
 }
コード例 #2
0
ファイル: osm.php プロジェクト: LuccaCaldas/anahita
 /**
  * Initializes the options for the object.
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param 	object 	An optional KConfig object with configuration options.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('name' => 'osm', 'version' => '0.6', 'url' => 'https://nominatim.openstreetmap.org/search/', 'key' => get_config_value('locations.service_key', null)));
     parent::_initialize($config);
 }