<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Seifi.org &#187; php</title>
	<atom:link href="http://www.seifi.org/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.seifi.org</link>
	<description>A Web Development Blog by Joe Seifi - seifi.org</description>
	<lastBuildDate>Thu, 26 Jan 2012 01:08:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Find Latitude and Longitude Using maps.google.com</title>
		<link>http://www.seifi.org/javascript/find_latitude_and_longitude_using_maps_google_com.html</link>
		<comments>http://www.seifi.org/javascript/find_latitude_and_longitude_using_maps_google_com.html#comments</comments>
		<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate>
		<dc:creator>Joe Seifi</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<a href="/php/googlemapsll.php">Here</a> is a php script that gets the Latitude and Longitude of any address using the google maps API.

The original script comes from <a href="http://groups.google.com/group/Google-Maps/browse_thread/thread/d6ac07707e8daab5/0bedb8c0255f74ed?q=longitude&#038;rnum=1#0bedb8c0255f74ed">Ken</a>. I just made some minor adjustments to it and made it dynamic.

This basically parses a JavaScript blob returned from the API and extracts the lat and long values.

]]></description>
			<content:encoded><![CDATA[<p>Here is a <a href="http://seifi.org/wp-content/uploads/2005/04/googlemapsll.php">php script</a> that gets the Latitude and Longitude of any address using the google maps API.</p>
<p>The original script comes from <a href="http://groups.google.com/group/Google-Maps/browse_thread/thread/d6ac07707e8daab5/0bedb8c0255f74ed?q=longitude&amp;rnum=1#0bedb8c0255f74ed">Ken</a>. I just made some minor adjustments to it and made it dynamic.</p>
<p>This basically parses a JavaScript blob returned from the API and extracts the lat and long values.</p>
<p>If you&#8217;re feeling hackish, another neat trick found by <a href="http://www.tech-recipes.com/rx/2403/google_maps_get_latitude_longitude_values">qmchenry</a> exposes Google Map&#8217;s JavaScript object and fires a series of functions to get the the lat and long values of the currently centered location in the browser. Just paste this JS into your address bar after you have searched for your <a href="http://maps.google.com/maps?f=q&#038;q=90210">address</a> on google maps.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">void</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">prompt</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">''</span><span style="color: #339933;">,</span>gApplication.<span style="color: #660066;">getMap</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getCenter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.seifi.org/javascript/find_latitude_and_longitude_using_maps_google_com.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

