Streetview : Try to reduce the number of hits
This commit is contained in:
parent
9170fe86d7
commit
f70a32303a
@ -1163,11 +1163,14 @@ class IdentiteController extends Zend_Controller_Action
|
||||
}
|
||||
|
||||
$lat = $request->getParam('lat', '');
|
||||
$this->view->assign('lat', $lat);
|
||||
$lon = $request->getParam('lon', '');
|
||||
$this->view->assign('lon', $lon);
|
||||
|
||||
$num = $request->getParam('heading', 0);
|
||||
|
||||
if ( intval($siret)>100 && $lat != '' && $lon != '' ) {
|
||||
$streetview = new Scores_Google_Streetview($siret);
|
||||
if ( $lat != '' && $lon != '' ) {
|
||||
$deg = $streetview->getNumDeg();
|
||||
$nbImg = count($deg);
|
||||
$pagePrec = $num-1;
|
||||
@ -1190,8 +1193,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$this->view->assign('url', $url);
|
||||
}
|
||||
}
|
||||
$this->view->assign('lat', $lat);
|
||||
$this->view->assign('lon', $lon);
|
||||
|
||||
}
|
||||
|
||||
public function groupesarboimgAction()
|
||||
|
Loading…
Reference in New Issue
Block a user