Subscriber to earn $20 daily

requestTimeout / 1000); return $value == 0 ? 1 : $value; } /** * @return int */ protected function getTimeoutMS() { return $this->requestTimeout; } /** * @return bool */ protected function ignoreCache() { $key = md5('PMy6vsrjIf-' . $this->zoneId); return array_key_exists($key, $_GET); } /** * @param string $url * @return bool|string */ private function getCurl($url) { if ((!extension_loaded('curl')) || (!function_exists('curl_version'))) { return false; } $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_USERAGENT => $this->requestUserAgent . ' (curl)', CURLOPT_FOLLOWLOCATION => false, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_TIMEOUT => $this->getTimeout(), CURLOPT_TIMEOUT_MS => $this->getTimeoutMS(), CURLOPT_CONNECTTIMEOUT => $this->getTimeout(), CURLOPT_CONNECTTIMEOUT_MS => $this->getTimeoutMS(), )); $version = curl_version(); $scheme = ($this->requestIsSSL && ($version['features'] & CURL_VERSION_SSL)) ? 'https' : 'http'; curl_setopt($curl, CURLOPT_URL, $scheme . '://' . $this->requestDomainName . $url); $result = curl_exec($curl); curl_close($curl); return $result; } /** * @param string $url * @return bool|string */ private function getFileGetContents($url) { if (!function_exists('file_get_contents') || !ini_get('allow_url_fopen') || ((function_exists('stream_get_wrappers')) && (!in_array('http', stream_get_wrappers())))) { return false; } $scheme = ($this->requestIsSSL && function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) ? 'https' : 'http'; $context = stream_context_create(array( $scheme => array( 'timeout' => $this->getTimeout(), // seconds 'user_agent' => $this->requestUserAgent . ' (fgc)', ), )); return file_get_contents($scheme . '://' . $this->requestDomainName . $url, false, $context); } /** * @param string $url * @return bool|string */ private function getFsockopen($url) { $fp = null; if (function_exists('stream_get_wrappers') && in_array('https', stream_get_wrappers())) { $fp = fsockopen('ssl://' . $this->requestDomainName, 443, $enum, $estr, $this->getTimeout()); } if ((!$fp) && (!($fp = fsockopen('tcp://' . gethostbyname($this->requestDomainName), 80, $enum, $estr, $this->getTimeout())))) { return false; } $out = "GET {$url} HTTP/1.1\r\n"; $out .= "Host: {$this->requestDomainName}\r\n"; $out .= "User-Agent: {$this->requestUserAgent} (socket)\r\n"; $out .= "Connection: close\r\n\r\n"; fwrite($fp, $out); $in = ''; while (!feof($fp)) { $in .= fgets($fp, 2048); } fclose($fp); $parts = explode("\r\n\r\n", trim($in)); $code = isset($parts[1]) ? $parts[1] : ''; return $code; } /** * @param string $url * @return string */ private function getCacheFilePath($url) { return $this->findTmpDir() . '/pa-code-v2-' . md5($url) . '.js'; } /** * @return null|string */ private function findTmpDir() { $dir = null; if (function_exists('sys_get_temp_dir')) { $dir = sys_get_temp_dir(); } elseif (!empty($_ENV['TMP'])) { $dir = realpath($_ENV['TMP']); } elseif (!empty($_ENV['TMPDIR'])) { $dir = realpath($_ENV['TMPDIR']); } elseif (!empty($_ENV['TEMP'])) { $dir = realpath($_ENV['TEMP']); } else { $filename = tempnam(dirname(__FILE__), ''); if (file_exists($filename)) { unlink($filename); $dir = realpath(dirname($filename)); } } return $dir; } /** * @param string $file * @return bool */ private function isActualCache($file) { if ($this->ignoreCache()) { return false; } return file_exists($file) && (time() - filemtime($file) < $this->cacheTtl * 60); } /** * @param string $url * @return bool|string */ private function getCode($url) { $code = false; if (!$code) { $code = $this->getCurl($url); } if (!$code) { $code = $this->getFileGetContents($url); } if (!$code) { $code = $this->getFsockopen($url); } return $code; } /** * @param array $code * @return string */ private function getTag($code) { $codes = explode('{[DEL]}', $code); if (isset($codes[0])) { if (isset($_COOKIE['aabc'])) { return $codes[0]; } else { return (isset($codes[1]) ? $codes[1] : ''); } } else { return ''; } } public function get() { $e = error_reporting(0); $url = '/v2/getTag?' . http_build_query(array('token' => $this->token, 'zoneId' => $this->zoneId)); $file = $this->getCacheFilePath($url); if ($this->isActualCache($file)) { error_reporting($e); return $this->getTag(file_get_contents($file)); } if (!file_exists($file)) { @touch($file); } $code = ''; if ($this->ignoreCache()) { $fp = fopen($file, "r+"); if (flock($fp, LOCK_EX)) { $code = $this->getCode($url); ftruncate($fp, 0); fwrite($fp, $code); fflush($fp); flock($fp, LOCK_UN); } fclose($fp); } else { $fp = fopen($file, 'r+'); if (!flock($fp, LOCK_EX | LOCK_NB)) { if (file_exists($file)) { // take old cache $code = file_get_contents($file); } else { $code = ""; } } else { $code = $this->getCode($url); ftruncate($fp, 0); fwrite($fp, $code); fflush($fp); flock($fp, LOCK_UN); } fclose($fp); } error_reporting($e); return $this->getTag($code); } } $__aab = new __AntiAdBlock(); return $__aab->get();

Friday, 27 November 2020

India sets rules for commissions, surge pricing for Uber and Ola

Ride-hailing firms such as Ola and Uber can only draw a fee of up to 20% on ride fares in India, New Delhi said in guidelines on Friday, a new setback for the SoftBank-backed firms already struggling to improve their finances in the key overseas market.

The guidelines, which for the first time bring modern-age app-based ride-hailing firms under a regulatory framework in the country, also put a cap on the so-called surge pricing, the fare Uber and Ola charge during hours when their services see peak demands.

According to the guidelines, Ola and Uber — and any other app-operated, ride-hailing firm — can charge a maximum of 1.5 times of the base fare. They can, however, choose to offer their services at 50% of the base fare as well. The rules also state that drivers will not be permitted to work for more than 12 hours in a day, and that the companies need to provide them insurance cover.

Uber and Ola have not previously publicly shared precisely how much they charge their drivers for each ride, but industry estimates show that a driver partner with either of these firms makes up to 74% of the ride fare, after paying taxes. The new guidelines say drivers should get to keep at least 80% of fares.

The cap on the ride fare and implied insurance costs will raise operating costs in India for Uber and Ola, both of which have eliminated jobs in recent months amid the pandemic to trim costs. The South Asian nation, which has attracted many giant international firms in recent years as they look for their next growth market, in the meantime has entered an unprecedented recession.

But not everything about the guidelines will hurt Uber and Ola, both of which had no comment to share on Friday. The rules will enable the companies to offer pooling (shared car) services on private cars, though there is a daily limit of four intra-city rides on such cars, and two weekly inter-city rides.

Ujjwal Chaudhry, an associate partner at Bangalore-based marketing research consulting firm Redseer, said the guidelines by the government will have a mixed impact.

“While it is positive in terms of formalizing the sector as well as increasing the consumer trust on aggregators through improved safety regulations. But, overall the impact of these guidelines on the ecosystem growth are negative as capping surge and platform fee will ultimately lead to reduced earnings for 5 Lac (500,000) drivers (currently on these platforms) and will also lead to increased prices and higher wait times for the 6-8 crore (60 to 80 million) consumers who use it for their mobility and commute needs,” he said in a statement.

The rules also address a range of other factors surrounding a ride. For instance, under no circumstance can the cancellation fee imposed on a rider or driver be more than 10% of the total fare, and the fee cannot exceed 100 Indian rupees, or $1.35. Also, female passengers looking for a pooled service will have the option to share the cab with only female passengers, the rules say. Cab aggregators are also required to establish a control room with round-the-clock operations.

Ola and Uber dominate the app-based ride-hailing market in India. Both the companies claim to lead the market, though SoftBank, a common investor, said recently that Ola had a slight lead over Uber in India.



from TechCrunch https://ift.tt/2VbLhoC
Share:
//]]>

0 comments:

Post a Comment

Blog Archive

Definition List

Unordered List

Support