/**
  * @param LatLon $min
  * @param LatLon $max
  *
  * @throws GeocodingException
  */
 public function __construct($min, $max)
 {
     if (!$min instanceof LatLon) {
         throw new GeocodingException('Minimum value is not a LatLon object.');
     }
     if (!$max instanceof LatLon) {
         throw new GeocodingException('Maximum value is not a LatLon object.');
     }
     if (!($min->get_lat() <= $max->get_lat())) {
         throw new GeocodingException('Minimum latitude is larger than maximum latitude.');
     }
     if (!($min->get_lon() <= $max->get_lon())) {
         throw new GeocodingException('Minimum longitude is larger than maximum longitude.');
     }
     $this->min = $min;
     $this->max = $max;
 }