[OSM-talk] The British Museum Test - ATTN Tom!
Tom Hughes
tom at compton.nu
Sat Nov 24 14:39:47 GMT 2007
On Nov 24, 2007 12:52 PM, David Earl <david at frankieandshadow.com> wrote:
> On 24/11/2007 12:29, David Earl wrote:
>
> > I need to put an equivalence in for "and" vs "&" I guess, but to find
> > "V&A" it would have to be labelled as such on the map e.g. "Victoria and
> > Albert Museum (V&A)" should allow me to pick it up.
>
> Ah, I did already put in an equivalence for "&".
>
> If you search for "Victoria & Albert" at
> http://www.frankieandshadow.com/osm/ it finds "Victoria and Albert
> Museum" as first hit, but not if you do it from www.openstreetmap.org
>
> So I think this one is probably an encoding problem with ampersand when
> the search string is passed to the search engine - one for you I think, Tom.
I was stupidly relying on ruby's URI.escape() to actually escape
things properly. Unfortunately it's author seems to have taken rather
too many hallucinogenic drugs and it quite deliberately excludes most
of the characters (like &, ?, / etc) which are special in URIs from
the list of those that will be escaped... Hence we wound up searching
for "Victoria".
It is fixed now anyway, and correctly finds the V&A as expected.
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the talk
mailing list