<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"
>

<channel>
	<title>nearby.org.uk blog &#187; Web Services</title>
	<atom:link href="http://www.nearby.org.uk/blog/category/web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nearby.org.uk/blog</link>
	<description>GIS, maps, mapping, geo, UK, Geograph, PHP, Perl and more</description>
	<lastBuildDate>Fri, 01 Jul 2011 18:59:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Between a rock and a hard place&#8230;</title>
		<link>http://www.nearby.org.uk/blog/2008/12/08/between-a-rock-and-a-hard-place/</link>
		<comments>http://www.nearby.org.uk/blog/2008/12/08/between-a-rock-and-a-hard-place/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 02:06:14 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[KML]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Google Earth API]]></category>
		<category><![CDATA[Google Maps API]]></category>
		<category><![CDATA[stupidity]]></category>
		<category><![CDATA[terms]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/?p=202</guid>
		<description><![CDATA[This is going to be a long and rambley piece about licences and the updated updated Terms of Service of the Google Maps API &#8211; if either of those don&#8217;t interest you turn away now Not that long ago Google updated the Terms of Service on Google Maps API &#8211; I guess mainly in responce [...]]]></description>
			<content:encoded><![CDATA[<p>This is going to be a long and rambley piece about licences and the updated updated Terms of Service of the Google Maps API &#8211; if either of those don&#8217;t interest you turn away now <img src='http://www.nearby.org.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Not that long ago Google <a href="http://googlegeodevelopers.blogspot.com/2008/11/posted-by-mickey-kataria-product.html">updated</a> the <a href="http://code.google.com/apis/maps/terms.html">Terms of Service</a> on <a href="http://code.google.com/apis/maps/">Google Maps API</a> &#8211; I guess mainly in responce to <a href="http://groups.google.com/group/Google-Maps-API/t/d4956d6126bd3b01">issues</a> brought up on the <a href="http://groups.google.com/group/Google-Maps-API/">Mail group</a>, and <a href="http://www.bbc.co.uk/blogs/technology/2008/11/the_mapping_mess_google_v_os.html">elsewhere</a>. As a result of that edit there where <a href="http://www.edparsons.com/2008/11/who-reads-the-terms-of-service-anyway/#comments">many</a> <a href="http://www.nearby.org.uk/blog/2008/11/13/use-google-maps-api-to-display-data-now-powned/">concerns</a> <a href="http://blumenthals.com/blog/2008/11/17/will-mashups-be-threatened-by-googles-map-api-tos/#more-1521">raised</a> (and <a href="http://groups.google.com/group/Google-Maps-API/t/3b0bd5922c7115f0">more</a>)- and a <a href="http://googlegeodevelopers.blogspot.com/2008/11/update-to-google-maps-api-terms-of.html">further edit</a> was made. (note, only linked to some of the blogs etc &#8211; follow links to read more) This was over a week ago, but due to non online commitments haven&#8217;t really had a time to follow this up. You can read my early reaction <a href="http://blumenthals.com/blog/2008/11/26/google-updates-google-maps-api-to-calm-the-storm-in-great-britain/">here</a>, which has been edited in to Mikes post.</p>
<hr />Below is the <a href="http://code.google.com/apis/maps/terms.html#section_11">main section</a> that is still causing concern, quoted in its entirety:</p>
<blockquote><p><small><strong>11. Licenses from You to Google.</strong></small></p>
<p><small>11.1<span style="text-decoration: underline;"> Content License.</span> Google claims no ownership over Your Content, and You retain copyright and any other rights you already hold in Your Content. By submitting, posting or displaying Your Content in the Service, you give Google a perpetual, irrevocable, worldwide, royalty-free, and non-exclusive license to reproduce, adapt, modify, translate, publicly perform, publicly display and distribute Your Content through the Service and as search results through Google Services. This license is solely for the purpose of enabling Google to operate the Service, to promote the Service (including through public presentations), and to index and serve such content as search results through Google Services. If you are unable or unwilling to provide such a license to Your Content, please see the <a href="http://code.google.com/apis/maps/faq.html#tos_optout">FAQ</a> for information on configuring your Maps API Implementation to opt out.</small></p>
<p><small>11.2 <span style="text-decoration: underline;">Brand Features License.</span> You grant to Google a nontransferable, nonexclusive license during the Term to use Your Brand Features to advertise that you are using the Service.</small></p>
<p><small>11.3 <span style="text-decoration: underline;">Authority to Grant Licenses.</span> You confirm and warrant to Google that you have all the rights, power and authority necessary to grant the above licenses.</small></p></blockquote>
<p>To be honest still unsure how I feel about this section, and finding it very hard to vocalise (well to put to pixels) the concerns. I certain its not compatible with a number of situations where the Maps would otherwise be ideal, but that I guess is real life &#8211; just need to move on an find <a href="http://www.openstreetmap.org/">something </a>that is more suitable. But its still gauling to have invested so much in Google Maps API to have it all disappear in puff of legal smoke, I guess its now going to be<em>&#8220;Once Burnt, Twice Shy&#8221; </em>as they say.</p>
<p><span id="more-202"></span></p>
<hr />I&#8217;ll try to put it into more practical terms. On <a href="http://www.geograph.org.uk/">Geograph</a> (which was a fairly big user of the API) contributors submit photos by releasing them under a <a href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons licence</a>. Its important to note that Geograph (the site or company running it) doesn&#8217;t get any additional rights or licence to the photos beyond the CC licence. Now according to the above section, the API developer (in this case me) must be able to grant Google a licence to the displayed data, but the licence is not compatible (no attribution clause) with the CC licence. Ok then, the last sentance of 11.1 hints at a get out &#8211; however jumping to the FAQ, which says:</p>
<blockquote><p><small><strong>How can I opt out of including my content in Google search results?</strong><br />
To remove your page or site from search results, follow the instructions provided in our webmaster help center. If we enable indexing of any content that is a part of your Maps API implementation, we will provide updated instructions to opt out of including that content in search results.</small></p></blockquote>
<p>This seems to equate &#8216;indexing&#8217; with &#8216;licence&#8217;.</p>
<p>Now I kinda understand why Google are doing this, they want to legalise the crawling they are doing &#8211; so they have a get out that the data has been licensed to them specifically.</p>
<p>So does that mean if we don&#8217;t agree to the licence &#8211; the data wont be crawled and indexed? But we do want content to be indexed &#8211; previously we&#8217;ve never agreed by allowing content to be crawled we giving a licence to that data.</p>
<p>&#8230; so with Geograph at least &#8211; I cant grant the licence &#8211; but I cant use the elusive &#8216;opt out&#8217; (boils down to robots.txt I guess), as I do want the content to be indexed. <strong>So can Geograph use the Google Maps API or not?</strong> I still can&#8217;t see how it can &#8211; if it did it would be contravening the TOS of the API (cant confirm as per 11.3), and/or violating the Creative Commons licence (see section 4.a. of the <a href="http://creativecommons.org/licenses/by-sa/2.0/legalcode">legal code</a>,<em> &#8220;You may not sublicense the Work.&#8221;</em> which is the most succinct expression of the issue).</p>
<p>Another silly issue in all of this, users displaying Geograph content on Google Maps website itself (eg via KML files) are basically agreeing to the same terms (by way of <a href="http://www.google.com/intl/en_ALL/help/terms_maps.html">here</a> and <a href="http://www.google.com/accounts/TOS">here</a> [see section 11]). So the same issue displaying such content is not actually abiding by the terms and licence. And by providing links to Google Maps we inciting users to do this :p &#8211; but that is a step away from doing it wholesale on the website itself?</p>
<hr />On a plus side have re-enabled the mashups on this site*, which I think are compatible with this updated updated terms, I still don&#8217;t have a licence to the data &#8211; but I dont allow it to be indexed either &#8211; and if/when Google start indexing mashups there will be mechanism to explicitly say no.</p>
<p>* sorry this has taken so long, truly sorry for the inconvenience. In retrospect maybe was a bit hasty &#8211; but couldnt allow the licence to data been entrusted with the be undermined.</p>
<hr />Slightly tangential, I just love the irony that as be section 11 of the Terms, Google wants a perpetual licence to your data, but in section 7 it only gives you a very limited licence to the mapping data &#8211; because of course it isn&#8217;t theirs. (not saying I disagree with section 7, just pointing out the disparity)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/12/08/between-a-rock-and-a-hard-place/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>(Google) GeoWeb Search API</title>
		<link>http://www.nearby.org.uk/blog/2008/05/14/google-geoweb-search-api/</link>
		<comments>http://www.nearby.org.uk/blog/2008/05/14/google-geoweb-search-api/#comments</comments>
		<pubDate>Wed, 14 May 2008 22:05:41 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[google geoweb geosearch api]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/?p=119</guid>
		<description><![CDATA[I dont know when it happened, but the API to search Googles GeoIndex seems to have gone live. The documentation is here (http method) and here (javascript). I actully found this via the recently announced Google Maps API for Flash, which is also good. /me wanders off to play (but dont have much time at [...]]]></description>
			<content:encoded><![CDATA[<p>I dont know when it happened, but the <a href="http://www.gearthblog.com/blog/archives/2008/05/google_geo_search_api_esri_and_goog.html">API to search Googles GeoIndex</a> seems to have gone live. The documentation is <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_fonje_local">here</a> (http method) and <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GlocalSearch">here</a> (javascript). I actully found this via the recently announced <a href="http://googlemapsapi.blogspot.com/2008/05/introducing-google-maps-api-for-flash.html">Google Maps API for Flash</a>, which is also good.</p>
<p>/me wanders off to play (but dont have much time at the moment <img src='http://www.nearby.org.uk/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  )</p>
<p>but before I go, I note that the api doesn&#8217;t <em>appear</em> to offer KML output :p</p>
<p><s>&#8230; unless of course the actual GeoSearch API is something bigger!</s></p>
<p>update: try it out:</p>
<blockquote><p><a href="http://www.nearby.org.uk/google/geoweb_explorer.php">http://www.nearby.org.uk/google/geoweb_explorer.php</a></p></blockquote>
<p>Not much to look at, but does show the json in a slightly easier to read format. Of course need to make a Maps API based map to try it out, but not tonight&#8230; (but did get as far as KML output &#8211; with source code!)</p>
<p>update2: Its been formally <a href="http://googlemapsapi.blogspot.com/2008/05/geo-search-20-data-in-data-out.html">announced</a>! (also if you find the &#8216;blended&#8217; doesnt return results you expect, see <a href="http://groups.google.com/group/Google-AJAX-Search-API/browse_thread/thread/51e53d2cc6bc8a69/">this thread</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/05/14/google-geoweb-search-api/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Where in the world are people looking? part 2</title>
		<link>http://www.nearby.org.uk/blog/2008/03/01/where-in-the-world-are-people-looking-part-2/</link>
		<comments>http://www.nearby.org.uk/blog/2008/03/01/where-in-the-world-are-people-looking-part-2/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 22:05:35 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Coverage Maps]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Google Earth]]></category>
		<category><![CDATA[KML]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[Nearby]]></category>
		<category><![CDATA[network-link]]></category>
		<category><![CDATA[online maps]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[Network Links]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2008/03/01/where-in-the-world-are-people-looking-part-2/</guid>
		<description><![CDATA[Following part 1 yesterday, have now plotted some maps per individual service. Flash Earth Layer Conclusions Google Earth does request a link for the initial view on startup &#8211; that point in the Atlantic. I guess North American installs have two slightly different default placemarks; has it changed, or maybe Canada gets a different one? [...]]]></description>
			<content:encoded><![CDATA[<p>Following <a href="http://www.nearby.org.uk/blog/2008/02/29/where-in-the-world-are-people-looking-part-1/">part 1</a> yesterday, have now plotted some <a href="http://www.nearby.org.uk/google/coverage/services.php">maps per individual service</a>.</p>
<blockquote><p>Flash Earth Layer<br />
<a href="http://www.nearby.org.uk/google/coverage/services.php"><img src="http://www.nearby.org.uk/google/coverage/world-point1.google_flashearth_kml_php.png" height="180" width="360" /></a></p></blockquote>
<p><strong>Conclusions</strong></p>
<ol>
<li>Google Earth does request a link for the initial view on startup &#8211; that point in the Atlantic.</li>
<li>I guess North American installs have two slightly different default placemarks; has it changed, or maybe Canada gets a different one?</li>
<li>But that doesnt explain the lines from there &#8211; people must have their links set to periodically refresh?</li>
<li>Germany likes FlashEarth (or rather people like looking at Germany with FlashEarth link enabled)</li>
<li>Many people leave the links open even when not in use &#8211; e.g. the British Isles links show worldwide usage, notably over Russia.</li>
<li>MGRS notably has high usage in two areas.</li>
<li>The Far east likes to know what direction they facing.</li>
</ol>
<p>Update: In a total forehead slapping momont realised these unprojected whole world images, are exactly what is used in GroundOverlays, so the the pages now include links to view the higher resolution images directly in Google Earth, duh!</p>
<blockquote><p> Example: <img src="http://www.google.com/earth/images/google_earth_link.gif" /> <a href="http://www.nearby.org.uk/google/coverage/world.kml.php?f=world2-point0.1.png&amp;t=aug+07+to+feb+08">View In Google Earth</a> (don&#8217;t forget to try adjusting the tranparency slider!) [Update, to fix broken link, sorry!]</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/03/01/where-in-the-world-are-people-looking-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When service users go bad?</title>
		<link>http://www.nearby.org.uk/blog/2008/02/29/when-service-users-go-bad/</link>
		<comments>http://www.nearby.org.uk/blog/2008/02/29/when-service-users-go-bad/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 19:11:31 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Nearby]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2008/02/29/when-service-users-go-bad/</guid>
		<description><![CDATA[This is probably a purely a rhetorical question, and a means to vent. As background, I have just noticed a single user use a very disportionate number of requests against one of the Google Earth Grid Layers (MGRS), it look&#8217;s like they set it to refresh every 10 seconds, and for a while did browse [...]]]></description>
			<content:encoded><![CDATA[<p>This is probably a purely a rhetorical question, and a means to vent. As background, I have just noticed a single user use a very disportionate number of requests against one of the Google Earth Grid Layers (MGRS), it look&#8217;s like they set it to refresh every 10 seconds, and for a while did browse around the globe, after that it stuck on one view and just happily refreshed away for 20 hours.</p>
<p>So what is the response to this type of thing (and I have no idea of the identity of users)?</p>
<ol>
<li>Blacklist at firewall level &#8211; effectively cutting them off from using nearby ever again.</li>
<li>Blacklist them from that feature permanently</li>
<li>Impose a temporally ban</li>
<li>Add a throttling to the service for everyone, such as a quota or rate limiting &#8211; difficult to get the sweat spot</li>
<li>Google Earth offers &lt;maxSessionLength&gt; which could be used to curtail the long term effect, but this would have a minor effect on legitimate users</li>
<li>similar to last but only start adding it once they trigger some limit</li>
</ol>
<p>So far (and only in a handful of cases) have done either 1 or 2. In the example that has triggered this post have done 1. but might change it to 3.</p>
<p>(the api and coordinate converter have their own dynamic limit, essentially 4. )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/02/29/when-service-users-go-bad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Geohash converter; API limit upped</title>
		<link>http://www.nearby.org.uk/blog/2008/02/28/geohash-converter-api-limit-upped/</link>
		<comments>http://www.nearby.org.uk/blog/2008/02/28/geohash-converter-api-limit-upped/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 23:01:37 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[geo]]></category>
		<category><![CDATA[geohash]]></category>
		<category><![CDATA[Nearby]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2008/02/28/geohash-converter-api-limit-upped/</guid>
		<description><![CDATA[Recently geohash.org was released; the premise: short easy links that encode a location. The website offers instant conversion, but as the algorithm is Public Domain, Lordelph was quick to implement a php class, and I could quickly add the conversion to my existing conversion API. Convert a postcode to geohash anyone? Updating the documentation noticed [...]]]></description>
			<content:encoded><![CDATA[<p>Recently <a href="http://geohash.org/">geohash.org</a> was released; the premise: short easy links that encode a location. The website offers instant conversion, but as the <a href="http://en.wikipedia.org/wiki/Geohash">algorithm</a> is Public Domain, <a href="http://blog.dixo.net/">Lordelph</a> was quick to implement a <a href="http://blog.dixo.net/2008/02/28/geohash-php-class/">php class</a>, and I could quickly <strong>add the conversion to my existing <a href="http://www.nearby.org.uk/api/convert-help.php">conversion API</a>. </strong>Convert a postcode to geohash anyone?</p>
<p>Updating the <a href="http://www.nearby.org.uk/api/convert-help.php">documentation</a> noticed the API was last updated in 2005 &#8211; gulp, how time flies! Anyway as a celebration have upped the throttling on the API, <strong>now three times the previous limit.</strong> Running on much improved hardware than when it was launched so maybe the limit can be tweaked even more, will run some analysis of its impact &#8211; it already seems the API is a minor part of the overall load on the server &#8211; particularly against the Google Earth layers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/02/28/geohash-converter-api-limit-upped/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>(static) Google Maps in Google Earth&#8230;</title>
		<link>http://www.nearby.org.uk/blog/2008/02/21/static-google-maps-in-google-earth/</link>
		<comments>http://www.nearby.org.uk/blog/2008/02/21/static-google-maps-in-google-earth/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 19:57:38 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Google Earth]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[KML]]></category>
		<category><![CDATA[network-link]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[non-js]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2008/02/21/static-google-maps-in-google-earth/</guid>
		<description><![CDATA[Now that Google have just announced a brand spanking new NON JS Maps API, to be able to display maps with a simple img tag, similar to the Chart API. Well I thought it would be fun to re-purpose the FlashEarth code to create a network link to display Google Maps in a popup balloon [...]]]></description>
			<content:encoded><![CDATA[<p>Now that Google have just <a href="http://googlemapsapi.blogspot.com/2008/02/google-maps-without-scripting.html">announced</a> a brand spanking new NON JS Maps API, to be able to display maps with a simple img tag, similar to the Chart API. Well I thought it would be fun to re-purpose the<br />
<a href="http://www.nearby.org.uk/blog/2007/08/28/google-earth-42-flash-earth-equals/">FlashEarth</a> code to create a network link to display Google Maps in a popup balloon on Google Earth. Not totally sure the utility, but sure is fun (until the novelty wears off!)</p>
<blockquote><p><img src="http://www.google.com/earth/images/google_earth_link.gif" /> <a href="http://www.nearby.org.uk/google/setupStatic.kml.pl">Open in Google Earth</a></p></blockquote>
<p>Hopefully needless to say the map inside the balloon is static and non draggable.</p>
<p>Update to clarify: You get to draw 1,000 maps daily, which is probably plenty, but go over that and the maps will stop working for you. </p>
<p><strong>Update</strong>: as alluded to in the official post, you can use the static API to load a quick map, while the rest of the page loads, then at the last minute change it into a dynamic map. <a href="http://www.nearby.org.uk/google/static3.php">A series of demos showing various ways of lazy loading</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/02/21/static-google-maps-in-google-earth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing with (geo-enabled) Full-Text Searches</title>
		<link>http://www.nearby.org.uk/blog/2007/12/20/playing-with-geo-enabled-full-text-searches/</link>
		<comments>http://www.nearby.org.uk/blog/2007/12/20/playing-with-geo-enabled-full-text-searches/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 23:15:35 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Geograph]]></category>
		<category><![CDATA[Location Search]]></category>
		<category><![CDATA[Nearby]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Sphinx]]></category>
		<category><![CDATA[UK]]></category>
		<category><![CDATA[Web Services]]></category>
		<category><![CDATA[auto complete]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[full text search]]></category>
		<category><![CDATA[image search]]></category>
		<category><![CDATA[indexing]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[text search]]></category>
		<category><![CDATA[web service]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2007/12/20/playing-with-geo-enabled-full-text-searches/</guid>
		<description><![CDATA[Recently I have been playing a lot with Sphinx full-text search engine, in particular with regard to indexing the Geograph archive. (a bit of background &#8211; Geograph has a fairly good homegrown site text search &#8211; but its not full text, so many queries will not return that many results &#8211; not to mention been [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have been playing a lot with <a href="http://www.sphinxsearch.com/">Sphinx full-text search engine</a>, in particular with regard to indexing the <a href="http://www.geograph.org.uk/">Geograph</a> archive. (a bit of background &#8211; Geograph has a fairly good homegrown <a href="http://www.geograph.org.uk/help/search">site text search</a> &#8211; but its not full text, so many queries will not return that many results &#8211; not to mention been based on MySQL &#8216;like&#8217;, so is pretty slow &#8211; so a full text search is the next level). And I have to say I am liking it a LOT, in fact I would say I am a fanboy <img src='http://www.nearby.org.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So to that end of created a whole bunch of demos based around the flexible indexing it provides, location based searching is even possible!</p>
<blockquote><p> At the most basic is <a href="http://www.nearby.org.uk/geograph/search1.php">simple text based search</a>, one point of note, there is no pagination, simply add more keywords (including negative) or grid references to refine the selection.</p></blockquote>
<blockquote><p> Next is a &#8216;auto-complete&#8217; style <a href="http://www.nearby.org.uk/geograph/find1.php">image finder</a>, this is designed to find &#8216;that image&#8217; quickly, in a similar way to the above but shows the results in a autocomplete box immediately!</p></blockquote>
<blockquote><p> A refinement of the first is <a href="http://www.nearby.org.uk/geograph/find1.php">search with location</a>, this allows you limit the search to near a particular Grid References &#8211; this is particully cool in that there is Sphinx powered auto-complete for place names for finding GRs. (a real auto-complete not a like the search in the previous one pretending to be one)</p></blockquote>
<blockquote><p>This is all building towards the <a href="http://www.nearby.org.uk/geograph/in-pics1.php">Illustrator demo</a>. Which from a block of text attempts to find relevent images. The idea is that a (geolocated) news article, walking route, place description and such could be <i>automatically</i> have relevent(ish) images shown. (an <a href="http://www.nearby.org.uk/geograph/in-pics1-example.html">example demo here</a>)</p></blockquote>
<p>(a few more &#8216;toys&#8217; can be found in <a href="http://www.nearby.org.uk/geograph/">GeographTools</a>!)&#8230;. Try them out and let me know how you get on&#8230;</p>
<p>I have learnt a lot about search indexing from this, including how to perform location searches in the index (I know latest versions of sphinx include a lat/long based geosearch &#8211; but I think this r-tree method in text has better scalability), and how to create an autocomplete function with sphinx. If anybody is interested in these, they will eventually make it into the geograph codebase, or let me know and I might make a separate post.</p>
<p>Interestingly (huh?), it was actually creating a <a href="http://www.trigpointinguk.com/trigtools/find1.php">&#8216;autocomplete&#8217; textbox for finding trigpoints</a> (which included the forerunner to the sphinx location search in but implemented in mysql), is actually what inspired me to actually go the trouble if figuring out how to install Sphinx on linux, which I have been interested in for a long time! &#8211; that is also now sphinx powered for text searches <img src='http://www.nearby.org.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As a side note have now reached the &#8216;linux sysadmin&#8217; level that I can compile it on Geographes servers, yay! But I do worry for the sanity of others due to this (a little knowledge is a dangerous thing!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2007/12/20/playing-with-geo-enabled-full-text-searches/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlashEarth+GoogleEarth Part 2</title>
		<link>http://www.nearby.org.uk/blog/2007/08/29/flashearthgoogleearth-part-2/</link>
		<comments>http://www.nearby.org.uk/blog/2007/08/29/flashearthgoogleearth-part-2/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 22:03:34 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Google Earth]]></category>
		<category><![CDATA[network-link]]></category>
		<category><![CDATA[online maps]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2007/08/29/flashearthgoogleearth-part-2/</guid>
		<description><![CDATA[Following the amazing interest in the networklink for embedding FlashEarth inside Google Earth 4.2, have performed a few updates&#8230; The zoom is a LOT closer matched, this is thanks to the inspiring formula: $z = (-1.4956 * log($range/1000) + 16.529; (yes really!); brought to you by the wonder of plotting a graph in Excel, creating [...]]]></description>
			<content:encoded><![CDATA[<p>Following the <em>amazing </em>interest in the <a href="http://www.nearby.org.uk/blog/2007/08/28/google-earth-42-flash-earth-equals/">networklink for embedding FlashEarth inside Google Earth 4.2</a>, have performed a few updates&#8230;</p>
<ol>
<li>The zoom is a LOT closer matched, this is thanks to the inspiring formula: <tt>$z = (-1.4956 * log($range/1000) + 16.529;</tt> (yes really!); brought to you by the wonder of plotting a graph in Excel, creating a trendline, turning on the formula display option. Probably could get an even better match with more patience, but probably about as good as it going to get really.</li>
<li>Removed the title and the directions links, makes the balloon looks a bit nicer, couldn&#8217;t get it to go transparent for me  tho&#8230; suggestions welcome.</li>
<li>When the network link is now a folder so can choose the size of your popup <img src='http://www.nearby.org.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The previous version is now the &#8216;medium&#8217; one.</li>
</ol>
<p>Though the magic of the web, you get 1) and 2) automatically, if want 3) just download it again:</p>
<blockquote><p><img src="http://www.google.com/earth/images/google_earth_link.gif" /> <strong><a href="http://www.nearby.org.uk/google/setupFlashEarth.kml.pl">Open in Google Earth</a></strong> (Required: GE 4.2 Windows)</p></blockquote>
<p>Thanks again to everyone involved.</p>
<blockquote></blockquote>
<blockquote></blockquote>
<blockquote><p><strong> </strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2007/08/29/flashearthgoogleearth-part-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google will Geocode UK addresses and postcodes!</title>
		<link>http://www.nearby.org.uk/blog/2007/07/06/google-will-geocode-uk-addresses-and-postcodes/</link>
		<comments>http://www.nearby.org.uk/blog/2007/07/06/google-will-geocode-uk-addresses-and-postcodes/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 22:18:53 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2007/07/06/google-will-geocode-uk-addresses-and-postcodes/</guid>
		<description><![CDATA[Something we wondered if we would ever see, but it seems the Google Maps API geocoder will now Geocode UK Addresses and Postcodes (see update below). This is quite big news on many fronts, as traditionally UK geocoding is expensive, or where providers do geocoding its with restictions on use of the data commercially. But [...]]]></description>
			<content:encoded><![CDATA[<p>Something we wondered if we would ever see, but it seems the Google Maps API geocoder will now Geocode UK Addresses <strike>and Postcodes</strike> (see update below). This is quite big news on many fronts, as traditionally UK geocoding is expensive, or where providers do geocoding its with restictions on use of the data commercially. But the API geocoder positivly encourages caching the geocodes for your locations (POIs), and in with particular Postcodes this has been a big no no. Can&#8217;t see any change in ToU&#8217;s in light of this, but we will see.</p>
<p>Has Google taken over the Royal Mail too now?</p>
<p>(<a href="http://googlemapsapi.blogspot.com/2007/07/uk-geocoding-now-available-in-maps-api.html">the official announcement</a>)</p>
<p><strong>Update Nov &#8217;07: &#8230; well it seems the postcodes was only a dream, and have now been withdrawn! Time will tell if this can be rectified. Ho hum&#8230;</strong></p>
<p>Update Dec &#8217;07: &#8230; the ToU have now been updated to clarify that the (http) geocoder is for the express use of &#8216;pre-caching&#8217; geocodes for use on a Google Maps API map. (I&#8217;ve also clarified the above paragraph in regards to this). This also prevents some interesting uses, eg store locators that work before a map is shown (but an intereactive one with a map should be fine), which is a shame.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2007/07/06/google-will-geocode-uk-addresses-and-postcodes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google Maps &#8211; Mapplets; a quick Geograph demo&#8230;</title>
		<link>http://www.nearby.org.uk/blog/2007/05/29/google-maps-mapplets-a-quick-geograph-demo/</link>
		<comments>http://www.nearby.org.uk/blog/2007/05/29/google-maps-mapplets-a-quick-geograph-demo/#comments</comments>
		<pubDate>Tue, 29 May 2007 19:49:44 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Geograph]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[KML]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2007/05/29/google-maps-mapplets-a-quick-geograph-demo/</guid>
		<description><![CDATA[Wow, Google have again gone and introduced an almost draw-dropping new feature to Google Maps &#8211; Mapplets. Put simply they allow you to create mini-map-mashups, but as they run on maps.google.com, visitors can view your content along side the normal content of Google Maps &#8211; but even more interestingly visitors can load more than one [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, Google have again gone and <a href="http://google-latlong.blogspot.com/2007/05/mashup-of-mashups.html">introduced</a> an almost draw-dropping new feature to Google Maps &#8211; Mapplets. Put simply they allow you to create mini-map-mashups, but as they run on maps.google.com, visitors can view your content along side the normal content of Google Maps &#8211; but even more interestingly visitors can load more than one Mapplet at a time, combining the data from each mashup onto ONE map!!!</p>
<p>And it turns out they are really easy to code for been based on Google Gadgets (which I haven&#8217;t used before) and Google Maps API (which I have <img src='http://www.nearby.org.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ), but I also congratulate Google on including in the package &#8216;Developer&#8217; mapplets that make developing relatively painless.</p>
<blockquote><p>Anyway onto the demos, just visit <a href="http://maps.google.com/preview">http://maps.google.com/preview</a> (it&#8217;s a Developer orientated demo for the moment), click the &#8216;Mapplets&#8217; tab, goto &#8216;Add Content&#8217; and see what takes your fancy. To try out my (very humble!) demo, use the &#8216;Add by URL&#8217; and paste in the following URL: <strong><a href="http://www.geograph.org.uk/stuff/gmapplet0.xml">http://www.geograph.org.uk/stuff/gmapplet0.xml</a></strong></p></blockquote>
<p>(more about maplets in the post linked in the first paragraph!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2007/05/29/google-maps-mapplets-a-quick-geograph-demo/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

