<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 06 Jul 2008 03:12:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Martynas Jusevicius' Blog: Calculating great-circle distance in MySQL and Propel]]></title>
      <guid>http://www.phpdeveloper.org/news/10093</guid>
      <link>http://www.phpdeveloper.org/news/10093</link>
      <description><![CDATA[<p>
In a <a href="http://www.xml.lt/Blog/2008/05/01/Calculating+great-circle+distance+in+MySQL+and+Propel">new post</a> today, <i>Martynas Jusevicius</i> shows how to combine a little SQL magic with the <a href=http://propel.phpdb.org/">Propel</a> framework to fins the distance between two places:
</p>
<blockquote>
Eventually the simple distance formula that I have blogged about turned out to be too inaccurate, even for locations within city bounds. I needed to use a formula to calculate great-circle distance which takes into account that the Earth is a sphere.
</blockquote>
<p>
He includes the SQL to pull the data in the right format and the PHP code (using Propel) to reproduce it without having to write it by hand (complete with the bind variables to help with security and consistency).
</p>]]></description>
      <pubDate>Thu, 01 May 2008 16:08:27 -0500</pubDate>
    </item>
  </channel>
</rss>
