Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Name finder loses cities west of Greenwich #524

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Name finder loses cities west of Greenwich #524

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: david[at]frankieandshadow.com
[Submitted to the original trac issue database at 6.05pm, Wednesday, 15th August 2007]

-------- Original Message --------
Subject: Re: [OSM-dev] Name finder for the main OSM page?
Date: Fri, 24 Aug 2007 00:21:06 +0100
From: Tom Hughes <tom[at]compton.nu>
To: dev[at]openstreetmap.org

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.

@openstreetmap-trac
Copy link
Author

Author: david[at]frankieandshadow.com
[Added to the original trac issue at 2.38pm, Saturday, 25th August 2007]

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant