Index: src/webservice/htdocs/SiWeather/Webservice/Location.php
===================================================================
--- src/webservice/htdocs/SiWeather/Webservice/Location.php	(revision a0f53955b124d2dee3c538903d40e9d5e7c877b7)
+++ src/webservice/htdocs/SiWeather/Webservice/Location.php	(revision b5ebb8df50cf75e9fd286740f30b7f4334d5a14a)
@@ -29,5 +29,5 @@
 class Location
 {
-	public function __construct($city, $zipCode = "",
+	public function __construct($city, $postalCode = "",
 								$regionName = "", $regionCode = "",
 								$countryName = "", $countryCode = "",
@@ -36,5 +36,5 @@
 
 		$this->_city = "";
-		$this->_zipCode = "";
+		$this->_postalCode = "";
 		$this->_regionName = "";
 		$this->_regionCode = "";
@@ -47,5 +47,5 @@
 
 		$this->setCity($city);
-		$this->setZipCode($zipCode);
+		$this->setPostalCode($postalCode);
 		$this->setRegion($regionName, $regionCode);
 		$this->setCountry($countryName, $countryCode);
@@ -62,10 +62,10 @@
 	}
 	
-	public function setZipCode($code){
-		$this->_zipCode = $code;
+	public function setPostalCode($code){
+		$this->_postalCode = $code;
 	}
 	
-	public function zipCode(){
-		return $this->_zipCode;
+	public function postalCode(){
+		return $this->_postalCode;
 	}
 	
@@ -110,7 +110,7 @@
 	  */
 	public function setLocation($latitude, $longitude){
-		if(is_numeric($latitude) && ($latitude > -90.0 && $latitude < 90.0))
+		if(self::validLatitude($latitude))
 			$this->_latitude = $latitude;
-		if(is_numeric($longitude) && ($longitude > -180.0 && $longitude < 180.0))
+		if(self::validLongitude($longitude))
 			$this->_longitude = $longitude;
 	}
@@ -127,5 +127,17 @@
 		return $this->longitude() ." ". $this->latitude();
 	}
-	
+
+	public static function validLatitude($latitude){
+		if(is_numeric($latitude) && (-90.0 <= $latitude && $latitude <= 90.0))
+			return true;
+		return false;
+	}
+
+	public static function validLongitude($longitude){
+		if(is_numeric($longitude) && (-180.0 <= $longitude && $longitude <= 180.0))
+			return true;
+		return false;
+	}
+
 	public function setTimeZone($zone){
 		if(preg_match("/^[\D]+\/[\D]+$/", $zone) > 0)
@@ -142,5 +154,5 @@
 	private $_regionName;
 	private $_city;
-	private $_zipCode;
+	private $_postalCode;
 	private $_timeZone;
 	private $_latitude;
Index: src/webservice/tests/LocationTest.php
===================================================================
--- src/webservice/tests/LocationTest.php	(revision a0f53955b124d2dee3c538903d40e9d5e7c877b7)
+++ src/webservice/tests/LocationTest.php	(revision b5ebb8df50cf75e9fd286740f30b7f4334d5a14a)
@@ -33,10 +33,10 @@
 	}
 	
-	public function testZipCode(){
+	public function testPostalCode(){
 		$location = new \SiWeather\Webservice\Location("", "");
 		
 		$value = "12345";
-		$location->setZipCode($value);
-		$this->assertEquals($location->zipCode(), $value);
+		$location->setPostalCode($value);
+		$this->assertEquals($location->postalCode(), $value);
 	}
 	
@@ -59,4 +59,44 @@
 		$this->assertEquals($location->countryName(), $value1);
 		$this->assertEquals($location->countryCode(), $value2);
+	}
+
+	public function testValidLatitude_data(){
+		$result = array();
+		$result[] = array(null, false);
+		$result[] = array("asdasd", false);
+		$result[] = array(0, true);
+		$result[] = array(-90, true);
+		$result[] = array(90, true);
+		$result[] = array(85.1234, true);
+		$result[] = array(-90.0001, false);
+		$result[] = array(90.0001, false);
+		return $result;
+	}
+
+	/**
+		* @dataProvider testValidLatitude_data
+		*/
+	public function testValidLatitude($latitude, $result){
+		$this->assertEquals(\SiWeather\Webservice\Location::validLatitude($latitude), $result);
+	}
+
+	public function testValidLongitude_data(){
+		$result = array();
+		$result[] = array(null, false);
+		$result[] = array("asdasd", false);
+		$result[] = array(0, true);
+		$result[] = array(-90, true);
+		$result[] = array(90, true);
+		$result[] = array(85.1234, true);
+		$result[] = array(-180.0001, false);
+		$result[] = array(180.0001, false);
+		return $result;
+	}
+
+	/**
+		* @dataProvider testValidLongitude_data
+		*/
+	public function testValidLongitude($longitude, $result){
+		$this->assertEquals(\SiWeather\Webservice\Location::validLongitude($longitude), $result);
 	}
 	
@@ -82,5 +122,5 @@
 	public function constructor(){
 		$city = "Nice Place";
-		$zipCode = "0001";
+		$postalCode = "0001";
 		$regionName = "Nice Region";
 		$regionCode = "NR";
@@ -89,10 +129,10 @@
 		$longitude = 50;
 		$latitude = 20;
-		$location = new \SiWeather\Webservice\Location($city, $zipCode, $regionName,
+		$location = new \SiWeather\Webservice\Location($city, $postalCode, $regionName,
 													   $regionCode, $countryName, $countryCode,
 													   $latitude, $longitude);
 		
 		$this->assertEquals($location->city(), $city);
-		$this->assertEquals($location->zipCode(), $zipCode);
+		$this->assertEquals($location->postalCode(), $postalCode);
 		$this->assertEquals($location->regionName(), $regionName);
 		$this->assertEquals($location->regionCode(), $regionCode);
