public static function initPlaces($appId, $apiKey, $hostsArray = null, $options = array()) { $options['placesEnabled'] = true; $client = new static($appId, $apiKey, $hostsArray, $options); return $client->getPlacesIndex(); }