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;
