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

boundarybox property returning fixed size, small boundaries for places #4723

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: craigloftus
[Submitted to the original trac issue database at 3.05pm, Friday, 21st December 2012]

When making a search request such as:

http://nominatim.openstreetmap.org/search?format=json&q=London&countrycodes=gb&limit=1

The boundingbox returned does not correspond with any 'boundary' of London, but just describes a small box around the place node.

boundingbox: ["51.5072746276855","51.5072784423828","-0.12765970826149","-0.127659693360329"]

I noticed that this is different behaviour from the MapQuest Nominatim endpoint, which for the same query returns a much larger bounding box that neatly fits 'London':

boundingbox: ["51.286190032959","51.6918830871582","-0.511035442352295","0.334359914064407"]

Is this a bug or a configuration decision? The MapQuest behaviour is a lot more intuitive and it makes the MapQuest endpoint a lot more suitable for my particular use-case.

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 9.24pm, Wednesday, 26th December 2012]

Someone had added admin_level=2 to the node making it a country, I've removed this.

Because it was a country it was returned first in the listing and wasn't correctly linked to the city polygon for london.

@openstreetmap-trac
Copy link
Author

Author: craigloftus
[Added to the original trac issue at 11.09am, Thursday, 27th December 2012]

I had thought it might be a data issue, however, I checked several other places for comparison and got the same result. London is fixed for me now, but the other examples I found are still 'broken', so I guess there is something wrong with their data?

Another example of a different boundarybox result is for Kidlington:

http://nominatim.openstreetmap.org/search?format=json&q=Kidlington&countrycodes=gb&limit=1

and

http://open.mapquestapi.com/nominatim/v1/search?format=json&q=Kidlington&countrycodes=gb&limit=1

Which return

["51.8234596252441","51.8234634399414","-1.28853178024292","-1.28853166103363"]

and

["51.8134596252","51.8334634399","-1.29853178024","-1.27853166103"]

The place node for Kidlington is [http://www.openstreetmap.org/browse/node/5494559 5494559], which was last updated in July.

I don't see any properties on it that should obviously confuse Nominatim? Perhaps the partial postcode?

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