<?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>Sat, 25 May 2013 01:56:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Etsy Code as Craft: There and Back Again: Migrating Geolocation Data to GeoNames]]></title>
      <guid>http://www.phpdeveloper.org/news/19392</guid>
      <link>http://www.phpdeveloper.org/news/19392</link>
      <description><![CDATA[<p>
On the Etsy "Code as Craft" blog there's <a href="http://codeascraft.etsy.com/2013/03/26/there-and-back-again-migrating-geolocation-data-to-geonames/">a recent post</a> about their move to using the <a href="http://geonames.org/">GeoNames</a> service internally rather than the external, third-party API previously in use.
</p>
<blockquote>
People are passionate about where they live. At Etsy we need to keep track of lots of different locations, such as buyers' billing and shipping addresses and sellers' shop locations. As Etsy continues to expand internationally we wanted to provide better localization and translations for our location place names. We determined that the best way to effect this change was to move from using a closed location API provider to internal services backed by the open <a href="http://geonames.org/">GeoNames</a> data set.
</blockquote>
<p>
<a href="http://codeascraft.etsy.com/2013/03/26/there-and-back-again-migrating-geolocation-data-to-geonames/">The post</a> details some of the steps in the process including the mapping of the current data to the new structure (the script is <a href="https://github.com/etsy/geonames">available on github</a>). They talk about how they mapped their old data over (trial and error sometimes) and the creation of a database of "GeoNameIDs" for each customer in their records. They've also implemented a <a href="http://lucenerevolution.org/">Lucene/Solr</a> search for improved searching and auto-suggestion based on the user's location.
</p>]]></description>
      <pubDate>Mon, 01 Apr 2013 11:48:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PPI Framework Blog: Tutorial: GeoLocation with FourSquare and Google Maps]]></title>
      <guid>http://www.phpdeveloper.org/news/19100</guid>
      <link>http://www.phpdeveloper.org/news/19100</link>
      <description><![CDATA[<p>
On the PPI framework blog there's a recent post showing how to use the framework to <a href="http://www.ppi.io/blog/1/tutorial-geolocation-with-foursquare-and-google-maps">create geolocation functionality</a> via an interface with FourSquare and Google Maps.
</p>
<blockquote>
In this article, we're going to learn how to work with the framework as a whole by writing a real-world application: making a module, controller, routes, templates (views) and services. In order to achieve this we are will use the Foursquare API, and APC for caching the API lookups. We will plot venues from Foursquare in Google Maps for display.
</blockquote>
<p>
They help you set up a skeleton application and start on creating the "Foursquare Module" along with its controller and views. There's Javascript code included to use the Google Maps functionality and a simple class to work with the FourSquare API to get nearby venues. In the end, you'll have a <a href="http://www.ppi.io/blog/images/foursquare-2.png">basic application</a> that maps out the points automatically.
</p>]]></description>
      <pubDate>Mon, 28 Jan 2013 13:06:28 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sherif Ramadan: Web Analytics with PHP and Google Visualization: Made Simple]]></title>
      <guid>http://www.phpdeveloper.org/news/18918</guid>
      <link>http://www.phpdeveloper.org/news/18918</link>
      <description><![CDATA[<p>
in <a href="http://sheriframadan.com/2012/12/web-analytics-with-php-and-google-visualization-made-simple/">this new post</a> to his site <i>Sherif Ramadan</i> shares a method for visualizing your website's visitor data with the help of the <a href="https://developers.google.com/chart/interactive/docs/reference">Google Visualization APIs</a> and some geolocation.
</p>
<blockquote>
<p>
The web is a place where everyone is in your backyard. This can be both a blessing and a curse. How do you know where your website traffic is coming from and how much of it there is? [...] How was traffic led to your website in the first place and why? How long do people stick around and what do they like the most about your site? These are all some of the many questions you can answer with web analytic software, but the real question is why would you want to answer these questions at all and what's the best way to look at the answer?
</p>
<p>
[...] If we look at a heat map it's easier to spot where the majority of our visitors and traffic are coming from, geographically. It also helps us understand that people visiting a virtual space can, and will, be physically located in different parts of the world.
</p>
</blockquote>
<p>
He includes the steps to recreate a map like the one <a href="http://sheriframadan.com/examples/geodata.html">included in this page</a> showing the current view statistics on his site. He uses a MySQL backend to store the GeoIP data and parses out the Apache "access_log" to get the IPs of the visiting users. He then runs these against the GeoIP data and passes this country data on to Google's visualization for handling. He also recommends using the tools offered by the <a href="https://www.google.com/webmasters/tools/">Google Webmaster Tools</a> to further enhance your introspection into your site's visitors.
</p>]]></description>
      <pubDate>Wed, 19 Dec 2012 12:38:47 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Risner: Mobile Geolocation Apps with Windows Azure Websites Part 1: The PHP Code]]></title>
      <guid>http://www.phpdeveloper.org/news/18491</guid>
      <link>http://www.phpdeveloper.org/news/18491</link>
      <description><![CDATA[<p>
<i>Chris Risner</i> has posted the first part of his series looking at <a href="http://chrisrisner.com/Mobile-Geolocation-Apps-with-Windows-Azure-Websites-Part-1--The-PHP-Code">mobile geolocation in PHP-based Azure applications</a> as hosted on the Windows Azure service.
</p>
<blockquote>
The first article in this <a href="http://chrisrisner.com/Mobile-Geolocation-Apps-with-Windows-Azure-Websites">mini-series</a> on creating geolocation apps with the backend hosted in Windows Azure Websites is going to be a walkthrough of the PHP code that we'll host in Windows Azure.  The PHP site will be simple and expose just a few methods.  Prior to getting into the code for the service, we need to setup a new website in Windows Azure and set up our database. 
</blockquote>
<p>
He walks you through some of the initial steps to create the PHP side of things - setting up the website instance and database, downloading the <a href="http://silex.sensiolabs.org/">Silex</a> PHP framework and the PHP code to get process the latitude and longitude of the current user. Also included is code to help find "interesting" points near the user and code to allow the user to add their own.
</p>]]></description>
      <pubDate>Wed, 19 Sep 2012 08:14:46 -0500</pubDate>
    </item>
    <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>
    <item>
      <title><![CDATA[PHPMaster.com: Targeted Geolocation with Geonames]]></title>
      <guid>http://www.phpdeveloper.org/news/17251</guid>
      <link>http://www.phpdeveloper.org/news/17251</link>
      <description><![CDATA[<p>
New on PHPMaster.com there's a tutorial from <i>Lukas White</i> about <a href="http://phpmaster.com/targeted-geolocation-with-geonames/">targeting users using geolocation</a> based on the <a href="http://www.geonames.org/">Geonames</a> web service and a latitude/longitude. His example makes a call to find the closest "place" to the given coordinates.
</p>
<blockquote>
Location-aware applications rely on being able to locate where you are, and this is what geolocation is all about. After all, once the application knows your location, it can go on to find the nearest store, guide you through the appropriate route to a destination, or target relevant advertisements to you. Geolocation, then, is simply the mechanism for identifying your geographical location.
</blockquote>
<p>
He mentions two challenges associated with geolocation - finding where someone is and describing the location. With Geonames, he shows how to call the service's "findNearbyPlaceName" method to find the closest "place" to a given latitude/longitude combination. Included is a bit of sample PHP to connect to the service and Javascript to request the user's current location.
</p>]]></description>
      <pubDate>Tue, 13 Dec 2011 12:10:02 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Derick Rethans' Blog: Using OpenStreetMap tiles with Flickr]]></title>
      <guid>http://www.phpdeveloper.org/news/15976</guid>
      <link>http://www.phpdeveloper.org/news/15976</link>
      <description><![CDATA[<p>
<i>Derick Rethans</i> has a new post today with a bit of code showing how to <a href="http://derickrethans.nl/using-openstreetmap-with-flickr.html">combine Flickr and OpenStreetMap</a> and make a mapping tool that plots out the location information for the Flickr images.
</p>
<blockquote>
I like taking pictures, and I usually take a GPS so that I can place them on a map on my Flickr page. On my last excursion however, the battery of my GPS had died, so I did not have location information available to store in my pictures' EXIF headers. Flickr can use the EXIF headers to then show the images on the map. Because I did not have the location information to automatically place my pictures on the map, I wanted to do that by hand. 
</blockquote>
<p>
His <a href="http://derickrethans.nl/files/redirectYahooMapsToOsm.php.txt">script</a> (as used by a local Squid proxy) supports two different versions of the mapping - one for Yahoo! Maps and the other for OpenStreetMaps'. You can see the <a href="http://derickrethans.nl/images/content/flickrosm.png">end result here</a> - a set of Flickr images with a map in the background.
</p>]]></description>
      <pubDate>Tue, 01 Mar 2011 09:37:56 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Timothy Boronczyk's Blog: Geolocation Search]]></title>
      <guid>http://www.phpdeveloper.org/news/15825</guid>
      <link>http://www.phpdeveloper.org/news/15825</link>
      <description><![CDATA[<p>
In a post earlier this month <i>Timothy Boronczyk</i> took a look at a common feature for web applications that's popping up more and more given the emphasis of social networking - geolocation of your users. <a href="http://zaemis.blogspot.com/2011/01/geolocation-search.html">The post</a> shows you how to use various web services and data sets to determine where a user is and how they relate to other locations.
</p>
<blockquote>
Services that allow users to identify nearby points of interest continue to grow in popularity. I'm sure we're all familiar with social websites that let you search for the profiles of people near a postal code, or mobile applications that use geolocation to identify Thai restaurants within walking distance. [...] The first step is to obtain the latitude and longitude coordinates of any locations you want to make searchable.
</blockquote>
<p>
He talks about why postal code-based location isn't the best option, a web service (like <a href="http://geocoder.ca/">Geocoder.ca</a> for Canadians) could provide more accurate results. He includes code you can use to help search the data based off of two formulas - one to grab the larger area of locations and the other to filter them down into the closest. Finally, he shows how to use the <a href="http://www.w3.org/TR/geolocation-API/">Geolocation API</a> service to get the results based on the user's search parameters.
</p>]]></description>
      <pubDate>Fri, 28 Jan 2011 11:49:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Dougal Campbell's Blog: Geolocation Plugin for WordPress]]></title>
      <guid>http://www.phpdeveloper.org/news/14470</guid>
      <link>http://www.phpdeveloper.org/news/14470</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Dougal Campbell</i> has posted about a <a href="http://dougal.gunters.org/blog/2010/05/04/geolocation-plugin-for-wordpres">geolocation plugin</a> for WordPress that will let you automatically tag your posts based on here you are.
</p>
<blockquote>
This <A href="http://iphone.wordpress.org/2010/05/03/geolocation-plugin-wordpress/">Geolocation Plugin</a> will be a nice addition for people who do travel blogging or who write about things in a particular area (restaurant and business reviews, hyperlocal news, etc).
</blockquote>
<p>
The power of this plugin comes when you're using a device with a GPS in it (like an iPhone) that can feed the information into the plugin. The result is a link that users can hover over and get a map of the location.
</p>]]></description>
      <pubDate>Thu, 06 May 2010 08:52:10 -0500</pubDate>
    </item>
  </channel>
</rss>
