Opened 12 years ago

Closed 12 years ago

#524 closed defect (fixed)

Name finder loses cities west of Greenwich

Reported by: David Earl Owned by: David Earl
Priority: major Milestone:
Component: namefinder Version: 1.0
Keywords: region Cc: Tom Hughes


Subject: Re: [OSM-dev] Name finder for the main OSM page? Date: Fri, 24 Aug 2007 00:21:06 +0100 From: Tom Hughes <Tom Hughes> To: dev@…

I've been playing with this using the three queries that your new version uses and I've found a couple of issues...

The "towns near" and "places near" queries generally behave fairly sensibly, and give things near "requestedplace" which has the lat and lon I supplied.

The "cities near" query does not do this however, and gives me all sorts of wierd results which are relative to other places and not the lat and lon I gave. My test case of 51.76,0.0 which is just north of London gives me Bristol as the first result!

A second problem is that it doesn't cope with wrapping around the zero meridian - as you can probably guess from that test case I live about half a mile or so from the meridian and I find that if I'm to the east of it I only find towns to the east and vice verse when I'm to the west of it.

Change History (3)

comment:1 Changed 12 years ago by David Earl

Status: newassigned

comment:2 Changed 12 years ago by Tom Hughes

Cc: Tom Hughes added

comment:3 Changed 12 years ago by David Earl

Resolution: fixed
Status: assignedclosed

Fixed. The indexing was not normalising longitudesinto the range 0..360 in order to produce a positive region number, while the searching was. So having determined neighbouring regions to look at, the relevant places weren't found in them when the neighbouring region had a negative longitude.

Note: See TracTickets for help on using tickets.