Esempio n. 1
0
 /**
  * @param  mixed  $latLngOrBounds
  * @param  mixed  $distance       (in meters)
  * @return Bounds
  */
 public function shrink($latLngOrBounds, $distance)
 {
     return $this->transformBounds($latLngOrBounds, -Distance::normalize($distance)->meters());
 }
Esempio n. 2
0
 public function testNormalizeShouldThrowExceptionForInvalidInput()
 {
     $this->setExpectedException('\\InvalidArgumentException');
     Distance::normalize('1000foo');
 }