This is the historical archive of the now-inactive 'grubstreet' list.
Discussion on OpenGuides development has now moved to OpenGuides-Dev. Discussion on The Open Guide to London now takes place on OpenGuides-London.

[grubstreet] More cool location stuff

[prev] [thread] [next] [lurker] [Date index for 2003/3/15]

From: Kate L Pugh
Subject: [grubstreet] More cool location stuff
Date: 20:18 on 15 Mar 2003
  http://the.earth.li/~kake/cgi-bin/cgi-wiki/wiki.cgi

is now not only category- and location-aware, but it can find "things
within N metres of X".  It's currently running on a snapshot hoovered
from grubstreet as of this evening.  The OS x and y co-ordinates were
worked out while hoovering but are editable (any page with a streetmap
URL on it, for example, "Kake" will have been assigned OS co-ords;
obviously in some cases these are spurious).

Take a look at a page that has OS co-ords defined, and see the little
one-line form at the bottom of the page.  Results are like, for example,

  http://the.earth.li/~kake/cgi-bin/cgi-wiki/wiki.cgi?distance_in_metres=500&id=Piccadilly+Circus+Station&action=find_within_distance&Go=Go

Pretty cool, huh?  It's done with a CGI::Wiki plugin, which I may well
have released to CPAN by the time you see this, but is also available at

  http://the.earth.li/~kake/code/CGI-Wiki-Plugin-Locator-UK-0.01.tar.gz

Bug reports welcomed.


Kake

-- 
grubstreet mailing list
http://london.openguides.org/old-list-archives/