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

Incomplete polygon points returned for "London" #4960

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

Incomplete polygon points returned for "London" #4960

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

Comments

@openstreetmap-trac
Copy link

Reporter: flamingtoast
[Submitted to the original trac issue database at 11.11pm, Monday, 19th August 2013]

The nominatim API returns an incomplete set of polygon points that only cover half of london (http://nominatim.openstreetmap.org/search.php?format=json&q=london&limit=1&polygon=1), yet using the OSM nominatim web interface gives us the complete shape: (http://nominatim.openstreetmap.org/search.php?q=london&viewbox=-168.76%2C62.6%2C168.76%2C-62.6&polygon=1). Why is this happening?

Plotting the points returned by the API yields this shape:
[[Image(http://i.imgur.com/iVGIAS3.jpg)]]

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 9.31pm, Tuesday, 20th August 2013]

The polygon parameter does not support multipolygons (never did and probably never will because the implementation is a CPU and memory hog). Just use one of the polygon_* parameters, they always return complete geometries (although they might get slightly simplified at some point).

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