[OSM-dev] Name finder for the main OSM page?

Tom Hughes tom at compton.nu
Wed Aug 8 12:31:39 BST 2007


In message <46B9A560.9090507 at frankieandshadow.com>
        David Earl <david at frankieandshadow.com> wrote:

> On 08/08/2007 11:55, Abigail Brady wrote:
>> On 8/8/07, *Tom Hughes* <tom at compton.nu <mailto:tom at compton.nu>> wrote:
>>
>>     I've made it so that only the actual name is the link now, which
>>     helps to make that stand out from the type prefix and the proximity
>>     suffix stuff.
>>
>>
>> This is good, except for the niggle that some anonymous objects get
>> returned by the namefinder (try searching for 'post offices near
>> london' as an example).  Possibly link the type in this case?
>
> Indeed, there's nothing to click on and an extraneous space before the
> comma.

I'll look at it later on.

> You (Tom) might find the following helpful in how I construct the long
> contextual description that you see in PHP. This is from the 'named'
> class, which corresponds very closely with the XML structure you
> see. Note that in describing the compass points, I'm not doing exact
> 45 degree segments.I found that it looked odd describing something as
> east' when it was as quite a long way off the straight line, so I
> opted for 20 degrees either side of the primary compass points and 30
> degrees either side of the secondary ones.

I had enough fun working out that your "direction" was anti-clockwise
starting from west rather than clockwise starting from north like any
sane compass bearing ;-)

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/




More information about the dev mailing list