<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Synesthesia &#187; PHP</title>
	<atom:link href="http://www.synesthesia.co.uk/blog/archives/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.synesthesia.co.uk/blog</link>
	<description>Notes on stuff</description>
	<lastBuildDate>Wed, 08 Sep 2010 21:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Extracting Route Instructions from Google Maps</title>
		<link>http://www.synesthesia.co.uk/blog/archives/2007/04/23/extracting-route-instructions-from-google-maps/</link>
		<comments>http://www.synesthesia.co.uk/blog/archives/2007/04/23/extracting-route-instructions-from-google-maps/#comments</comments>
		<pubDate>Mon, 23 Apr 2007 06:06:31 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[Mashups]]></category>
		<category><![CDATA[Site News]]></category>
		<category><![CDATA[GoogleMapsMashup]]></category>
		<category><![CDATA[Mapping]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSL]]></category>

		<guid isPermaLink="false">http://www.synesthesia.co.uk/blog/archives/2007/04/23/extracting-route-instructions-from-google-maps/</guid>
		<description><![CDATA[This mini-project came about because I had a need to give people route instructions for a party.
It&#8217;s easy to use Google Maps to set up a customised route by adding placemarks at navigationally-significant locations (see this example), and you can easily add instructions (including pictures) at each point (try clicking on one of the &#8220;map [...]]]></description>
			<content:encoded><![CDATA[<p>This mini-project came about because I had a need to give people route instructions for a party.</p>
<p>It&#8217;s easy to use <a href="http://maps.google.com/" title="Google Maps">Google Maps</a> to set up a customised route by adding placemarks at navigationally-significant locations (see <a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;z=16&amp;om=1&amp;msid=114870744536353390965.00000111ea7e65a3111ef&amp;msa=0" title="Example Google Map">this example</a>), and you can easily add instructions (including pictures) at each point (try clicking on one of the &#8220;map pins&#8221;).</p>
<p>However in the real world, there is nothing to beat having a list of instructions that each person can print out. I didn&#8217;t want to re-type everything into a separate document, so created a <a href="http://www.synesthesia.co.uk/data/sp2tm.php" title="Example output page">web page</a> to extract the key information from Google Maps and present it as a <a href="http://www.synesthesia.co.uk/data/sp2tm.php" title="Example output page">tabular list</a>. Editing the data in Google Maps is immediately reflected in the web page.</p>
<p>There are three key components which are described in more detail (including source listings) on the associated <a href="http://www.synesthesia.co.uk/blog/wiki/Extracting+Route+Instructions+from+Google+Map">wiki page</a>.</p>
<ul>
<li>The <a href="http://earth.google.com/kml/kml_tags_21.html" title="KML reference">KML</a> representation of the map</li>
<li>A PHP script to pull down the relevant KML file, manipulate it by application of an XSL stylesheet, and create the resulting web page</li>
<li>The XSL stylesheet</li>
</ul>
<p><strong>Assumptions and Limitations</strong></p>
<ul>
<li>Assumes that the order in which waypoints are added to the Google Map is the correct navigational order. (this could be a real pain if you later needed to add an intermediate point)</li>
<li>URL transform to get KML file is hard-coded</li>
<li>Assumes that the only placemarks on the map are navigational waypoints</li>
</ul>
<p><strong>References</strong></p>
<ul>
<li>A lot of the insight on manipulating KML came from <a href="http://cse-mjmcl.cse.bris.ac.uk/blog/2005/07/26/1122414882406.html" title="Mark McClaren's Weblog">Mark Mclaren&#8217;s Weblog</a></li>
<li>The PHP code to manipulate the XML was heavily lifted from the <a href="http://devzone.zend.com/node/view/id/1302" title="Zend Developer Zone">Zend Developer Zone</a></li>
</ul>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/GoogleMapsMashup' rel='tag' target='_self'>GoogleMapsMashup</a>, <a class='technorati-link' href='http://technorati.com/tag/Mapping' rel='tag' target='_self'>Mapping</a>, <a class='technorati-link' href='http://technorati.com/tag/maps' rel='tag' target='_self'>maps</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP' rel='tag' target='_self'>PHP</a>, <a class='technorati-link' href='http://technorati.com/tag/XML' rel='tag' target='_self'>XML</a>, <a class='technorati-link' href='http://technorati.com/tag/XSL' rel='tag' target='_self'>XSL</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.synesthesia.co.uk/blog/archives/2007/04/23/extracting-route-instructions-from-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links Roundup for 2006-12-14</title>
		<link>http://www.synesthesia.co.uk/blog/archives/2006/12/15/links-55/</link>
		<comments>http://www.synesthesia.co.uk/blog/archives/2006/12/15/links-55/#comments</comments>
		<pubDate>Thu, 14 Dec 2006 23:00:00 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[LinkLog]]></category>
		<category><![CDATA[Creativity_Tools]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Web-Services]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Shared bookmarks for del.icio.us user  Synesthesia on 2006-12-14

Timeline:
Timeline is a DHTML-based AJAXy widget for visualizing time-based events.
Keywords: Ajax, WebServices, Presentations, Visualisation

Back to GTD: Do a fast “mind-sweep”:
Keywords: GTD, Personal_Productivity

77 Ways to Learn Faster, Deeper, and Better:
Keywords: learning, Creativity, Personal_Productivity

Does this “next action” belong someplace else?:
Keywords: Personal_Productivity, GTD

Exploiting Amazon Web Services via PHP and SQLite:
Keywords: [...]]]></description>
			<content:encoded><![CDATA[<p>Shared bookmarks for <a href="http://del.icio.us/">del.icio.us</a> user <a href="http://del.icio.us/synesthesia"> Synesthesia</a> on 2006-12-14</p>
<ul>
<li><a title="http://simile.mit.edu/timeline/" href="http://simile.mit.edu/timeline/">Timeline</a>:<br />
Timeline is a DHTML-based AJAXy widget for visualizing time-based events.<br />
Keywords: <a href="http://del.icio.us/synesthesia/Ajax">Ajax</a>, <a href="http://del.icio.us/synesthesia/WebServices">WebServices</a>, <a href="http://del.icio.us/synesthesia/Presentations">Presentations</a>, <a href="http://del.icio.us/synesthesia/Visualisation">Visualisation</p>
<p></a></li>
<li><a title="http://www.43folders.com/2006/07/24/b2gtd-mind-sweep/" href="http://www.43folders.com/2006/07/24/b2gtd-mind-sweep/">Back to GTD: Do a fast “mind-sweep”</a>:<br />
Keywords: <a href="http://del.icio.us/synesthesia/GTD">GTD</a>, <a href="http://del.icio.us/synesthesia/Personal_Productivity">Personal_Productivity</p>
<p></a></li>
<li><a title="http://oedb.org/library/college-basics/hacking-knowledge" href="http://oedb.org/library/college-basics/hacking-knowledge">77 Ways to Learn Faster, Deeper, and Better</a>:<br />
Keywords: <a href="http://del.icio.us/synesthesia/learning">learning</a>, <a href="http://del.icio.us/synesthesia/Creativity">Creativity</a>, <a href="http://del.icio.us/synesthesia/Personal_Productivity">Personal_Productivity</p>
<p></a></li>
<li><a title="http://www.43folders.com/2004/09/27/does-this-next-action-belong-someplace-else/" href="http://www.43folders.com/2004/09/27/does-this-next-action-belong-someplace-else/">Does this “next action” belong someplace else?</a>:<br />
Keywords: <a href="http://del.icio.us/synesthesia/Personal_Productivity">Personal_Productivity</a>, <a href="http://del.icio.us/synesthesia/GTD">GTD</p>
<p></a></li>
<li><a title="http://programming.newsforge.com/programming/06/03/03/175207.shtml?tid=55" href="http://programming.newsforge.com/programming/06/03/03/175207.shtml?tid=55">Exploiting Amazon Web Services via PHP and SQLite</a>:<br />
Keywords: <a href="http://del.icio.us/synesthesia/WebServices">WebServices</a>, <a href="http://del.icio.us/synesthesia/PHP">PHP</a></li>
</ul>
<p>I posted these via Spurl a while ago, but the <a href="http://support.spurl.net/default.php?spurlnet.4.944.15">Spurl-to-del.icio.us functionality is broken at the moment</a>.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Creativity_Tools' rel='tag' target='_self'>Creativity_Tools</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP' rel='tag' target='_self'>PHP</a>, <a class='technorati-link' href='http://technorati.com/tag/Productivity' rel='tag' target='_self'>Productivity</a>, <a class='technorati-link' href='http://technorati.com/tag/Web-Services' rel='tag' target='_self'>Web-Services</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.synesthesia.co.uk/blog/archives/2006/12/15/links-55/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Links Roundup for 2006-02-16</title>
		<link>http://www.synesthesia.co.uk/blog/archives/2006/02/17/links-21/</link>
		<comments>http://www.synesthesia.co.uk/blog/archives/2006/02/17/links-21/#comments</comments>
		<pubDate>Thu, 16 Feb 2006 23:00:00 +0000</pubDate>
		<dc:creator>Julian</dc:creator>
				<category><![CDATA[LinkLog]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Shared bookmarks for del.icio.us user  Synesthesia on 2006-02-16

PHP: mysql_select_db:
How to make it easier to work in PHP with multiple databases on the same server.  Keywords: PHP/Databases




Technorati Tags: Databases, PHP


]]></description>
			<content:encoded><![CDATA[<p>Shared bookmarks for <a href="http://del.icio.us/">del.icio.us</a> user <a href="http://del.icio.us/synesthesia"> Synesthesia</a> on 2006-02-16</p>
<ul>
<li><a href="http://www.php.net/manual/en/function.mysql-select-db.php#52584" title="http://www.php.net/manual/en/function.mysql-select-db.php#52584">PHP: mysql_select_db</a>:<br />
How to make it easier to work in PHP with multiple databases on the same server. <br /> Keywords: <a href="http://del.icio.us/synesthesia/PHP/Databases">PHP/Databases</a></li>
</ul>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Databases' rel='tag' target='_self'>Databases</a>, <a class='technorati-link' href='http://technorati.com/tag/PHP' rel='tag' target='_self'>PHP</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.synesthesia.co.uk/blog/archives/2006/02/17/links-21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
