<?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, 26 May 2013 00:27:07 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Where on Earth are You?]]></title>
      <guid>http://www.phpdeveloper.org/news/17485</guid>
      <link>http://www.phpdeveloper.org/news/17485</link>
      <description><![CDATA[<p>
In PHPMaster.com's latest tutorial <i>Lukas White</i> introduces you to using the Yahoo "Placemaker" web service to <a href="http://phpmaster.com/where-on-earth-are-you/">geographically locate a place from a free-form text string</a>. The results include "place details" like the type of the location, latitude, longitude and how confident they are in their match.
</p>
<blockquote>
The challenge then is to do two things: work out what place you could be talking about, disambiguate if necessary, and then identify exactly where on Earth that is. That's what I'll show you how to do in this article; by using a freely available web service, we'll write a simple program to ask users where they are (and ask them to clarify if necessary) before identifying their responses in concrete terms.
</blockquote>
<p>
He shows how to make a request to the <a href="http://developer.yahoo.com/geo/placemaker/">Placemaker</a> web service, passing it a string coming from the user, to be located. The POST request contains a few pieces of data including an application ID 
, your desired output type and the language you're using for the input. His example code uses <a href="http://php.net/curl">curl</a> to make the request and handles it (the XML response at least) with a call to <a href="http://php.net/simplexml_load_string">simplexml_load_string</a>.
</p>]]></description>
      <pubDate>Thu, 02 Feb 2012 08:52:54 -0600</pubDate>
    </item>
  </channel>
</rss>
