<?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>Tue, 18 Jun 2013 17:20:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[php|architect: Finding Exactly Where You Are]]></title>
      <guid>http://www.phpdeveloper.org/news/17121</guid>
      <link>http://www.phpdeveloper.org/news/17121</link>
      <description><![CDATA[<p>
On the php|architect site today <i>Chris Tankersley</i> has a new tutorial about geocoding, <a href="http://www.phparch.com/2011/11/finding-exactly-where-you-are/">Finding Exactly Where You Are</a> - a guide to integrating the <a href="http://developer.yahoo.com/geo/placefinder/">Yahoo! Placefinder</a> service into your application.
</p>
<blockquote>
Yahoo! PlaceFinder is a REST web service that will turn an address into the latitudinal and longitudinal coordinates in XML, JSON, or serialized PHP objects. It has a few other functions too, like finding the nearest airport, time zone, and even telephone area code. [...] PlaceFinder is a very simple REST service, so cURL is a quick and easy way to access it. There are no authentication tokens to deal with or logon procedures. Just send a GET request, and read the response. 
</blockquote>
<p>
He <a href="https://developer.apps.yahoo.com/dashboard/createKey.html">links you</a> to the service to get an API key and includes a simple class (PlaceFinderAPI) that builds the GET query for you and makes the request via <a href="http://php.net/curl">curl</a>. Also included is an example showing how to find a given location (coincidentally, his location choice is the hotel where the <a href="http://tek.phparch.com">php|tek</a> conferences are held).
</p>]]></description>
      <pubDate>Fri, 11 Nov 2011 12:05:40 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Aaron McGowan' Blog: Geocoding search terms with Bing Maps]]></title>
      <guid>http://www.phpdeveloper.org/news/15447</guid>
      <link>http://www.phpdeveloper.org/news/15447</link>
      <description><![CDATA[<p>
<i>Aaron McGowan</i> has a new post to his blog that looks at the work he's done <a href="http://www.amcgowan.ca/blog/computer-science/geocoding-search-terms-with-bing-maps/">interfacing with the Bing Maps API</a> to do some geocoding for <a href="http://www.emitter.ca/">Emitter.ca</a>.
</p>
<blockquote>
One of the key features which was required for Emitter.ca, was the ability to geocode search terms like street addresses, cities, and postal codes, that a user enters so that Emitter.ca could easily return facilities that are nearby. To do this, we leveraged Bing Maps's API for performing the Geocode lookup. Microsoft offers a variety of APIs for allowing your application to interact with Bing Maps, however, for Geocoding search terms, we utilized Bing's SOAP API.
</blockquote>
<p>
He shares the class he uses to pull the information out of the Bing Maps SOAP response and push the details into the properties of a class. The simpel class made interfacing with the API an easy task and allowed for string-based lookups on just about anywhere (like "Toronto, Ontario").
</p>]]></description>
      <pubDate>Wed, 17 Nov 2010 12:28:40 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPRiot.com: Geocoding with PHP and the Google Maps API]]></title>
      <guid>http://www.phpdeveloper.org/news/9599</guid>
      <link>http://www.phpdeveloper.org/news/9599</link>
      <description><![CDATA[<p>
New from PHPRiot today, there's <a href="http://www.phpriot.com/articles/google-maps-geocoding">this new tutorial</a> showing you how to combine a PHP interface with the Google Maps API to do some geocoding of your own.
</p>
<blockquote>
Geocoding is the process of finding the longitude and latitude of a given address or location. The Google Maps service gives developers and web site owners free access to their geocoder, both using the Google Maps JavaScript API, as well as using the web service. In this article I will show you how to access the geocoder web service using PHP so that it can be used in your own applications.
</blockquote>
<p>
<a href="http://www.phpriot.com/articles/google-maps-geocoding">The tutorial</a> walks you through every step of the way - from getting your Google API ID to making a simple request all the way out to using placemarks to store locations to fetch later on.
</p>
<p>
This is a great, very detailed summary that anyone wanting to work with the Google API in PHP should definitely check out.
</p>]]></description>
      <pubDate>Mon, 11 Feb 2008 08:06:29 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Spindrop.us: Caching REST with sfFunctionCache]]></title>
      <guid>http://www.phpdeveloper.org/news/7583</guid>
      <link>http://www.phpdeveloper.org/news/7583</link>
      <description><![CDATA[<p>
On the SpinDrop blog, there's <a href="http://spindrop.us/2007/04/07/caching-rest-with-sffunctioncache/">a new article</a> from <i>Dave Dash</i> highlighting one of the features of the <a href="http://symfony-project.com/">symfony framework</a> they use to bounce requests off of Yahoo!'s Geocoding API to normalize addresses.
</p>
<blockquote>
I wrote a wrapper (I'll release it as a plugin if requested) for the <a href="http://developer.yahoo.com/maps/rest/V1/geocode.html">Geocoding API</a>, the bulk of the work (the REST call) occurs in a function called doQueryGIS.
</blockquote>
<p>
He <a href="http://spindrop.us/2007/04/07/caching-rest-with-sffunctioncache/">include the code</a> for the wrapper function and show how to use it to make a call to the API, setting up the caching directory and passing in the raw address data from the user.
</p>]]></description>
      <pubDate>Mon, 09 Apr 2007 10:49:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: PHPGeocache 1.0 Released]]></title>
      <guid>http://www.phpdeveloper.org/news/6065</guid>
      <link>http://www.phpdeveloper.org/news/6065</link>
      <description><![CDATA[<p>
The <a href="http://www.phpgeocache.org/">PHPGeocache</a> library is a newly released (version 1.0 on July 30th) toolkit to help any web developer work with geocaching quickly and easily on their own site.
</p>
<blockquote>
<p>
More and more people are learning about the fun sport <a href="http://en.wikipedia.org/wiki/Geocaching">Geocaching</a>.
Why not integrate geocaching data into your own website, creating a mashup or simply creating your own geocaching website?
</p>
<p>
PHPGeocache is a <a href="http://www.phpgeocache.org/license.php">free</a> toolkit implemented in PHP which allows everyone to integrate geocaching information into his own website. And yes, it can also be used for commercial projects. 
</p>
</blockquote>
<p>
The <a href="http://www.phpgeocache.org/">library</a> allows you to grab and store geocoded data in a local database and makes it easy to pull the information out and manipulate it as you need. There's also a built in system to create paths of wyapoints for a hunt in true geocaching fashion.
</p>]]></description>
      <pubDate>Thu, 17 Aug 2006 07:44:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer.com: Performing HTTP Geocoding with the Google Maps API]]></title>
      <guid>http://www.phpdeveloper.org/news/5858</guid>
      <link>http://www.phpdeveloper.org/news/5858</link>
      <description><![CDATA[<p>
Developer.com is continuing their series (on the Google Maps API, see <a href="http://www.phpdeveloper.org/news/4396">here</a> for a previous article) today with <a href="http://www.developer.com/db/article.php/3621981">this new tutorial</a>, a look at using the geocaching functionality the Google Maps API offers over a HTTP connection.
</p>
<blockquote>
<p>
In this tutorial I showed you how to submit geocoding requests via JavaScript, which is convenient because it's easy to subsequently build a map using the retrieved coordinates. However, if you're interested in performing bulk geocoding for reason of storing a series of coordinates in a database, you might be interested in taking advantage of a second means for geocoding, accomplished by way of HTTP request. 
</p>
<p>
Storing the coordinates locally will not only decrease the number of required daily geocoding requests (limited to 50,000 daily), but it will speed your application by cutting down on the total requests required to ultimately build a map.
</p>
</blockquote>
<p>
They <a href="http://www.developer.com/db/article.php/3621981">start off with a simple example</a>, showing how to sed the request out to Google as well as the output. They show how to get the information you need out of the return XML. This basic example leads to something more complex - the server-side caching of the geocode results in a MySQL database.
</p>]]></description>
      <pubDate>Mon, 24 Jul 2006 12:09:22 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The OC Food Review Blog: Notes on implementing location based search (part 2 of 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/5734</guid>
      <link>http://www.phpdeveloper.org/news/5734</link>
      <description><![CDATA[<p>
<i>Rahim Sonawalla</i> has posted <a href="http://blog.ocfoodreview.com/2006/06/30/notes-on-implementing-location-based-search-part-2-of-2/">part two</a> of his series on The OC Food Review blog covering the creation of a location-based search using geocoding.
</p>
<blockquote>
We got geocoding out of the way in the first part, so now it's time to talk distances. To figure out how far apart two places are, we could use the traditional method of calculating distances between two points, but that damn Columbus didn't fall off into the Twighlight Zone when he passed the horizon. Turns out the Earth isn't flat, go figure. Oh, and since it isn't flat, assuming that it is will cause your numbers to be off when calculating distances using normal geometry-sometimes by miles.
</blockquote>
<p>
He <a href="http://blog.ocfoodreview.com/2006/06/30/notes-on-implementing-location-based-search-part-2-of-2">links to</a> a <a href="http://mathforum.org/library/drmath/view/51833.html">formula</a> for finding the difference when the distances are short as well as a <a href="http://wantingseed.com/sprout/2003/06/10/distance-between-two-points-on-earth/">PHP implementation</a> of the Haversine formula when the distances get long.
<p>
He <a href="http://blog.ocfoodreview.com/2006/06/30/notes-on-implementing-location-based-search-part-2-of-2">combines this new knowledge</a> with the information already obtained by the geocoding in the <a href="http://www.phpdeveloper.org/news/5727">first part</a> and a SQL database to help narrow down the items in the list. Then, for each of those, he compares the latitude and longitudes to get the difference between them (in miles).
</p>]]></description>
      <pubDate>Fri, 30 Jun 2006 12:05:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[The OC Food Review Blog: Notes on implementing location based search (part 1 of 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/5727</guid>
      <link>http://www.phpdeveloper.org/news/5727</link>
      <description><![CDATA[<p>
The OC Food Review blog has posted <a href="http://blog.ocfoodreview.com/2006/06/29/notes-on-implementing-location-based-search-part-1-of-2/">part one</a> of a two part series covering the creation of a location-based search engine. They're currently implementing it into their site and wanted to share the knowledge.
</p>
<blockquote>
Conceptually, location based searching is pretty straight-forward: find out where you are, find out how far you're willing to travel, and compare your location against the locations of all your choices. If the distance between where you are and what you're interested in is less than what you're willing to travel, add it to your results list. Simple, right? Right.
</blockquote>
<p>
He <a href="http://blog.ocfoodreview.com/2006/06/29/notes-on-implementing-location-based-search-part-1-of-2/">talks more about</a> the concepts behind the search and one of the keys to the entire process - geocoding. They opted to go with the <a href="http://developer.yahoo.com/maps/rest/V1/geocode.html">Yahoo! Maps</a> API to grab this information. There's some sample REST urls and the output of the results after they've been unserialized.
</p>
<p>
They've even created <a href="http://blog.ocfoodreview.com/wp-content/uploads/geocoder.phps">their own class</a> to make things even simpler. It does require that you have cURL installed with your PHP5 installation, but outside of that, there are no other dependencies.
</p>]]></description>
      <pubDate>Thu, 29 Jun 2006 12:27:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer.com: Building a Geocoding Web Service]]></title>
      <guid>http://www.phpdeveloper.org/news/4396</guid>
      <link>http://www.phpdeveloper.org/news/4396</link>
      <description><![CDATA[New from <a href="http://www.developer.com">Developer.com</a> today, there's <a href="http://www.developer.com/tech/article.php/3566631">this new tutorial</a> (in the series) that aims to show you how, with the help of both Perl and PHP, to make a Geocoding web service.
<p>
<quote>
<i>
In the <a href="http://www.developer.com/tech/article.php/3557171">previous installment</a> of this four-part series regarding creating spatially enabled Web applications, you learned how to create a local datasource mapping mailing addresses to latitudinal and longitudinal coordinates using the Geo::Coder::US Perl package and the U.S Census Bureau's TIGER/Line data. In this final installment, you'll learn how to make this data available to the world through a Perl-based Web service. 
<p>
To demonstrate the service's capabilities, a PHP-driven client will pass a mailing address to the Web service, retrieve the spatial data made available through this Web service, and finally feed it to the Google Maps API to produce a map marking the location of the mailing address.
</i>
</quote>
<p>
If you don't really know Perl all that well, don't worry too much - they <a href="http://www.developer.com/tech/article.php/3566631">give you the code you'll need</a> to get it set up, as well as the PHP code to make the web service connection...]]></description>
      <pubDate>Tue, 29 Nov 2005 05:50:00 -0600</pubDate>
    </item>
  </channel>
</rss>
