private function template($toObject)
	{
		if($toObject) {
			$response = new StdClass;

			foreach($this->returnLocationData as $key => $value) {
				$response->{$key} = $value;
			}
			return $response;
		}
		return $this->returnLocationData;
	}