This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$objects = new RecursiveIteratorIterator | |
(new RecursiveDirectoryIterator(__DIR__), | |
RecursiveIteratorIterator::SELF_FIRST); | |
foreach ($objects as $path => $fileObject) { | |
if ( ! is_dir($fileObject)) { | |
continue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getByLatLng($lat, $lng, $range = 5000 /* KM */, $earthRadius = 6378 /* Unit Earth Radius */) { | |
\Config::load('db'); | |
$mongoConf = \Config::get('mongo'); | |
$monga = \Monga::connection('mongodb://' . $mongoConf['default']['hostname'] . ':27017'); | |
$database = $monga->database($mongoConf['default']['database']); | |
$nameCache = 'company_get_by_' . $lat . '_' . $lng; | |
try { |