<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Find nearest store page using PHP, mySQL and Google Maps</title>
	<atom:link href="http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/</link>
	<description>Developing the web, one page at a time.</description>
	<lastBuildDate>Sat, 24 Jul 2010 12:54:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David</title>
		<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/comment-page-1/#comment-319</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 16 Sep 2009 23:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://davidsimpson.me/?p=6#comment-319</guid>
		<description>A full UK postcode location file has been leaked as a CSV.  As Google&#039;s postcode lookup isn&#039;t that accurate, I&#039;d recommend trying it out.  

For more details check &lt;a href=&quot;http://www.guardian.co.uk/technology/blog/2009/sep/16/wikileaks-postcode-file-free-data&quot; rel=&quot;nofollow&quot;&gt;the Guardian blog&lt;/a&gt; by &lt;a href=&quot;http://twitter.com/charlesarthur&quot; title=&quot;Charles Arthur&quot; rel=&quot;nofollow&quot;&gt;@charlesarthur&lt;a/&gt;</description>
		<content:encoded><![CDATA[<p>A full UK postcode location file has been leaked as a CSV.  As Google&#8217;s postcode lookup isn&#8217;t that accurate, I&#8217;d recommend trying it out.  </p>
<p>For more details check <a href="http://www.guardian.co.uk/technology/blog/2009/sep/16/wikileaks-postcode-file-free-data" rel="nofollow">the Guardian blog</a> by <a href="http://twitter.com/charlesarthur" title="Charles Arthur" rel="nofollow">@charlesarthur<a /></a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saikat</title>
		<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/comment-page-1/#comment-314</link>
		<dc:creator>Saikat</dc:creator>
		<pubDate>Mon, 03 Aug 2009 09:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://davidsimpson.me/?p=6#comment-314</guid>
		<description>I agree with Jamie, Google discards last 2 digits of postcode following a complaint from Royal Mail. Full postcode to latitude longitude data is Royal Mail proprietory and they sell it for £2000/year!</description>
		<content:encoded><![CDATA[<p>I agree with Jamie, Google discards last 2 digits of postcode following a complaint from Royal Mail. Full postcode to latitude longitude data is Royal Mail proprietory and they sell it for £2000/year!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/comment-page-1/#comment-264</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 24 Jun 2009 12:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://davidsimpson.me/?p=6#comment-264</guid>
		<description>@Jamie: Yes.  The postcode needs to be in single quotes.  See line 35 of the listing above - it&#039;s been updated.</description>
		<content:encoded><![CDATA[<p>@Jamie: Yes.  The postcode needs to be in single quotes.  See line 35 of the listing above &#8211; it&#8217;s been updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/comment-page-1/#comment-263</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Tue, 23 Jun 2009 15:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://davidsimpson.me/?p=6#comment-263</guid>
		<description>Hi your SQL statement:

SELECT ROUND( 3963.0 * ACOS( SIN( *PI()/180 ) * SIN( latitude*PI()/180 ) + COS( *PI()/180 ) * COS( latitude*PI()/180 ) * COS( (longitude*PI()/180) - (*PI()/180) ) ) , 1) AS distance, store_name, postcode, postal_address, latitude, longitude FROM stores WHERE postcode = NR11HU ORDER BY distance ASC LIMIT 0, 10

Causes the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;*PI()/180 ) * SIN( latitude*PI()/180 ) + COS( *PI()/180 ) * COS( latitude&#039;

Any advice?</description>
		<content:encoded><![CDATA[<p>Hi your SQL statement:</p>
<p>SELECT ROUND( 3963.0 * ACOS( SIN( *PI()/180 ) * SIN( latitude*PI()/180 ) + COS( *PI()/180 ) * COS( latitude*PI()/180 ) * COS( (longitude*PI()/180) &#8211; (*PI()/180) ) ) , 1) AS distance, store_name, postcode, postal_address, latitude, longitude FROM stores WHERE postcode = NR11HU ORDER BY distance ASC LIMIT 0, 10</p>
<p>Causes the following error:<br />
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;*PI()/180 ) * SIN( latitude*PI()/180 ) + COS( *PI()/180 ) * COS( latitude&#8217;</p>
<p>Any advice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/comment-page-1/#comment-36</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 09 Mar 2009 22:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://davidsimpson.me/?p=6#comment-36</guid>
		<description>@Thorsten, @Andrew Paget, @Brandon: 
Thanks for the interest.  I&#039;ve added a little to the PHP code sample.  It now includes the MySQL query and execution.

Also, here&#039;s an excellent alternative article  excellent article &#8212; &lt;a href=&quot;http://code.google.com/apis/maps/articles/phpsqlsearch.html&quot; onclick=&quot;javascript:pageTracker._trackPageview(&#039;/outbound/article/http://code.google.com/apis/maps/articles/phpsqlsearch.html&#039;);&quot; rel=&quot;nofollow&quot;&gt;Creating a Store Locator with PHP, MySQL &amp; Google Maps&lt;/a&gt; from Google.

@Jamie Thompson: 
Sorry, not sure about that one I&#039;m afraid.</description>
		<content:encoded><![CDATA[<p>@Thorsten, @Andrew Paget, @Brandon:<br />
Thanks for the interest.  I&#8217;ve added a little to the PHP code sample.  It now includes the MySQL query and execution.</p>
<p>Also, here&#8217;s an excellent alternative article  excellent article &mdash; <a href="http://code.google.com/apis/maps/articles/phpsqlsearch.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://code.google.com/apis/maps/articles/phpsqlsearch.html');" rel="nofollow">Creating a Store Locator with PHP, MySQL &#038; Google Maps</a> from Google.</p>
<p>@Jamie Thompson:<br />
Sorry, not sure about that one I&#8217;m afraid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon</title>
		<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/comment-page-1/#comment-34</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Mon, 02 Mar 2009 21:55:58 +0000</pubDate>
		<guid isPermaLink="false">http://davidsimpson.me/?p=6#comment-34</guid>
		<description>Hey,

I dont know if im missing something or not, but the build the search results page section definitely isnt complete?

Maybe its because you say its basic and to provide your own MVC framework, but i dont actually know what one of those is.

Can you in anyway provide a complete working demo which can be adjusted to work?</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I dont know if im missing something or not, but the build the search results page section definitely isnt complete?</p>
<p>Maybe its because you say its basic and to provide your own MVC framework, but i dont actually know what one of those is.</p>
<p>Can you in anyway provide a complete working demo which can be adjusted to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Paget</title>
		<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/comment-page-1/#comment-33</link>
		<dc:creator>Andrew Paget</dc:creator>
		<pubDate>Mon, 02 Mar 2009 09:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://davidsimpson.me/?p=6#comment-33</guid>
		<description>Hi

This lloks quite interesting. Do you have a sample page that includes the MySQL query and the search form that I could take a look at?

Thank you</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>This lloks quite interesting. Do you have a sample page that includes the MySQL query and the search form that I could take a look at?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Thompson</title>
		<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/comment-page-1/#comment-11</link>
		<dc:creator>Jamie Thompson</dc:creator>
		<pubDate>Wed, 11 Feb 2009 20:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://davidsimpson.me/?p=6#comment-11</guid>
		<description>Is the gmaps api now fully geocoding UK postcodes. Last time i looked it was only doing partial postcode areas, for example a request for W1B 2EL would return coords for the centre of the W1B 2xx area.</description>
		<content:encoded><![CDATA[<p>Is the gmaps api now fully geocoding UK postcodes. Last time i looked it was only doing partial postcode areas, for example a request for W1B 2EL would return coords for the centre of the W1B 2xx area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thorsten</title>
		<link>http://davidsimpson.me/2008/09/28/find-nearest-store-page-using-php-mysql-and-google-maps/comment-page-1/#comment-4</link>
		<dc:creator>Thorsten</dc:creator>
		<pubDate>Wed, 24 Dec 2008 09:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://davidsimpson.me/?p=6#comment-4</guid>
		<description>Hi, for me as a relative beginner with php and mysql it would be very helpful if you could provide a complete ready to use download of your script with all necessary lines of code (db connect etc.). So it would be even easier to reproduce your nice work.

All the best</description>
		<content:encoded><![CDATA[<p>Hi, for me as a relative beginner with php and mysql it would be very helpful if you could provide a complete ready to use download of your script with all necessary lines of code (db connect etc.). So it would be even easier to reproduce your nice work.</p>
<p>All the best</p>
]]></content:encoded>
	</item>
</channel>
</rss>
