Location: PHPKode > projects > The Address Book Reloaded > TheAddressBookReloaded-3.3.2-stable-657/devdocs/plugins/MapoRama.html
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class MapoRama</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			

<h2 class="class-name">Class MapoRama</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> various</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_plugins---Map---Map.MapoRama.php.html">/plugins/Map/Map.MapoRama.php</a> (line <span class="field">18</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#canGeocode" title="details" class="method-name">canGeocode</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$countryCode</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#canMap" title="details" class="method-name">canMap</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$countryCode</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#geocode" title="details" class="method-name">geocode</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$tbl_address</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#get_lat_long" title="details" class="method-name">get_lat_long</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$address1</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$address2</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$zip</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$city</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$state</span> = <span class="var-default">null</span>], <span class="var-type"></span>&nbsp;<span class="var-name">$countrycode</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#maporama_curl" title="details" class="method-name">maporama_curl</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$address1</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$address2</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$zip</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$city</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$state</span> = <span class="var-default">null</span>], <span class="var-type"></span>&nbsp;<span class="var-name">$countrycode</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#maporama_curl_without_curl" title="details" class="method-name">maporama_curl_without_curl</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$address1</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$address2</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$zip</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$city</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$state</span> = <span class="var-default">null</span>], <span class="var-type"></span>&nbsp;<span class="var-name">$countrycode</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#showMap" title="details" class="method-name">showMap</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$tbl_address</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#showMapAt" title="details" class="method-name">showMapAt</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$latitude</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$longitude</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodcanGeocode" id="canGeocode"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">canGeocode</span> (line <span class="line-number">23</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			canGeocode
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$countryCode</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$countryCode</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcanMap" id="canMap"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">canMap</span> (line <span class="line-number">56</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			canMap
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$countryCode</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$countryCode</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgeocode" id="geocode"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">geocode</span> (line <span class="line-number">36</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			geocode
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$tbl_address</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$tbl_address</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget_lat_long" id="get_lat_long"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">get_lat_long</span> (line <span class="line-number">74</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			get_lat_long
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$address1</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$address2</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$zip</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$city</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$state</span> = <span class="var-default">null</span>], <span class="var-type"></span>&nbsp;<span class="var-name">$countrycode</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$address1</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$address2</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$zip</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$city</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$state</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$countrycode</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmaporama_curl" id="maporama_curl"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">maporama_curl</span> (line <span class="line-number">99</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			maporama_curl
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$address1</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$address2</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$zip</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$city</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$state</span> = <span class="var-default">null</span>], <span class="var-type"></span>&nbsp;<span class="var-name">$countrycode</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$address1</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$address2</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$zip</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$city</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$state</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$countrycode</span>			</li>
				</ul>
		
			
	</div>
<a name="methodmaporama_curl_without_curl" id="maporama_curl_without_curl"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">maporama_curl_without_curl</span> (line <span class="line-number">192</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">returns Maporama URL</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jesper Nielsen &lt;<a href="mailto:jesper">jesper</a>&gt; -- at -- &lt;krusedulle.net&gt;</li>
				<li><span class="field">version:</span> <p>0.5.2</p><p>This function is inspired by the Yahoo! widget Map-o-Rama!  http://widgets.yahoo.com/gallery/view.php?widget=37478</p><p>20060624: Added a function get_lat_long that theoretically can fetch the coordinate          for any matched maporama address.</p></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			maporama_curl_without_curl
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$address1</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$address2</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$zip</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$city</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$state</span> = <span class="var-default">null</span>], <span class="var-type"></span>&nbsp;<span class="var-name">$countrycode</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$address1</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$address2</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$zip</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$city</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$state</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$countrycode</span>			</li>
				</ul>
		
			
	</div>
<a name="methodshowMap" id="showMap"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">showMap</span> (line <span class="line-number">68</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			showMap
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$tbl_address</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$tbl_address</span>			</li>
				</ul>
		
			
	</div>
<a name="methodshowMapAt" id="showMapAt"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">showMapAt</span> (line <span class="line-number">62</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			showMapAt
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$latitude</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$longitude</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$latitude</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$longitude</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sun, 06 Jan 2008 13:40:38 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>
Return current item: The Address Book Reloaded