-
Notifications
You must be signed in to change notification settings - Fork 294
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
Town duplicates and missing county info? #120
Comments
There are two administrative entries for Chorley: http://www.openstreetmap.org/browse/relation/148744 and http://www.openstreetmap.org/browse/relation/1414821. You might want to adopt Nominatim's approach to boundary description: use the place designation if there is a linked place or translate the admin_level into something human understandable. Naturally that would require to export the linked place somehow. For the rather short description of , : it might be worth having a look at the human readable address formats they are doing over at opencage data: https://github.com/lokku/address-formatting. I could imagine that we import different address information (e.g. state or county or sometimes both) depending on which country the object is in. |
I came across the address-formatting project yesterday and this is really great! |
I've just been having a play with the demo on the OpenCage site (http://geocoder.opencagedata.com/demo.html) and it looks pretty good. However, it doesn't seem to distinguish between the two Chorley villages very well whereas the search results on this page (http://www.openstreetmap.org/search?query=Chorley) returns the fact that one is |
The following URL returns 2 entries for the same information for the Phones 4u Arena in Manchester: @christophlingg Any news on including a more complete address in the API response so that the examples in #120 (comment) are easier to distinguish? |
nominatim creates multiple entries for a place that has multiple meanings (tourism and leisure) in your example. we could group that as a comma-separated list. Do you think it is urgent, did you encounter this very often? In regard to your duplicates: every item has a country information, state information is coming in the next version v0.2. So I guess all informations will be available to distinguish items with equal names. |
I don't think it's that urgent because I haven't really found any other examples although it will be easier to distinguish between duplicates when the extra address info arrives in v0.2. |
@christophlingg it's great that you've added |
Thanks for your feedback, did not know about nominatim's feature of extracting county information. It should not be too hard to include it, however I assume it is not as urgent as it was for the state attribute. It also seems that mapping coverage of county is not that good: http://taginfo.openstreetmap.org/tags/?key=place&value=county#map |
Counties are mostly tagged as administrative boundary with admin level 6. |
@christophlingg county is very important for distinguishing between locations in the UK. |
@christophlingg I was just wondering if there was any chance of county being added to the response (where it exists) with it being important (at least for UK and USA locations). |
It is a good idea and could help users. We need to elaborate first how big the impact of a new field (search performance and index size). |
Cool. |
In the meantime, if anyone is looking to remove duplicates like
which will use a comma separated list for osm_values of duplicates, |
If I add the county name into my search query photon does return a resultset that is filtered down as expected, matching those in that county, so I assume county is in the search index already (and in use). |
@christophlingg just wondered if there was any news about a release date or progress update on milestone 0.3.0 |
sorry @amnesia7 I am quite busy with other stuff which leaves me with no time for photon at the moment |
That's a shame, photon was making really good progress. Hurry back. |
@christophlingg just wondered whether you are working on photon again yet to be able to add county to the response which already appears to be part of the index anyway because when searching and including the county in the query the results look to be filtered down as expected. |
@karussell would |
API now returns county. Closing. |
I've just tried doing a search for
chorley
using http://photon.komoot.de/ (the request was actually http://photon.komoot.de/api/?q=chorley&limit=5&lat=52.38796340538239&lon=13.058280944824217) which returned 2 entries both listed asChorley, United Kingdom (administrative)
.The response also included 2 entries listed as
Chorley, United Kingdom (village)
that are both different villages but the response gives no information to differentiate between them until you see where they are on the map.Are the 2 administrative entries duplicates?
Is there anything that can be done about duplicates like this from the api point of view?
I could filter the response before showing them in the suggestions list (eg request limit=10, remove duplicates, output the first 5) but I wonder if the response shouldn't be actually including them anyway.
Is there some info missing with respect to the 2 village entries in the list, eg county name, to give the user more of a clue which is which?
The text was updated successfully, but these errors were encountered: