-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin city populator broken for large countries #979
Comments
@jeffwarnica searching on the current map view would likely have the same issues for any maps using a wide initial zoom. |
True, though if/when you get 0 results back you could offer the suggestion
|
I'm just wondering if we can pull a location list from OSM (maybe Nominatim http://wiki.openstreetmap.org/wiki/Nominatim) since then it would match what users see on the map too. or maybe just parse the full Geonames data dumps http://www.geonames.org/export/ |
I think the quick solution here is to use something like:
Though it would probably make sense to source the bounding box from OSM too rather than using a mix of geonames and OSM |
#985 should fix this issue by switching to us OSM as data source. Please try it out. |
See #941 and #670. Opening a new issue as I think I've got the problem understood as a general case.
When a geographically "large" country is selected, the Geonames service will return 0 results.
It seems the root of the problem is that the (free to use) API just gives up when you give it a large "bounding box". One gets what they pay for, I guess. I would suggest that an alternative method would be to not search based on some well known geographical description of the country selected, but to search for cities based on the current previewed map.
The text was updated successfully, but these errors were encountered: