Skip to content
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

Idea: add more detail to labels based on other results #8

Open
orangejulius opened this issue Oct 20, 2016 · 4 comments
Open

Idea: add more detail to labels based on other results #8

orangejulius opened this issue Oct 20, 2016 · 4 comments
Labels

Comments

@orangejulius
Copy link
Member

Right now, each result has its label determined only by the data in that record itself. This is easy, consistent, and simple. But sometimes I wonder if it makes sense to add more detail if a lot of results have labels that look similar, so that the results can be distinguished.

Consider this example from Mapillary that came from @eneerhut (thanks!)
screenshot from 2016-10-20 14-32-32

It looks at first like we are just bad at deduplicating, but in fact there are that many Zacatecas in the world:
screenshot from 2016-10-20 14-30-29

Even worse, some are regions, some are localities, some are even neighbourhoods, but you can't tell from the labels. Obviously, there's some leeway in the UI of things like Mapzen.js to add a little bit more information to what's displayed (showing the layer might help here, for example), but perhaps our labels could help.

This could also be useful for cases like in pelias/pelias#317, where searches for common restaurant chains gives back lots of identical results.

@eneerhut
Copy link

Thanks for the explanation @orangejulius. As you say, it's really a UI thing and displaying admin level that would make search a lot more intuitive.

@orangejulius
Copy link
Member Author

UI changes could definitely help (I know i've seen a nice geocoding results dropdown somewhere that had a very nice, subtle, right justified section that showed what type of result it was, but I can't find it now), but we can and will continue to improve labels too :)

@hannesj
Copy link

hannesj commented Nov 15, 2016

Ping @vesameskanen, any ideas from HSLdevcom/pelias-api#26 or HSLdevcom/pelias-api#30

@vesameskanen
Copy link

Yes, indeed:) The problems becomes very obvious when you search a generic venue name such as 'k-market, Helsinki' (a shop chain).

Briefly, we implemented a new postprocessing layer on top of label generator. It iterates a set of configured 'name expanders' until all labels have become unique or all expanders have been executed. The iteration handles each group of identical names separately in order to ensure that just the minimal amount of expansion takes place. Looooong names are not especially desirable,

We currently apply 4 expanders, in this order:

  1. Add street address to venue name
  2. Add configured admin levels to name, if not already included (e.g. neighbourhood)
  3. Add geographic qualificaton like 'north' or 'southwest'
  4. Add category information

We also implemented a 5th expander which adds the layer type (localadmin, region etc.), but that is currently unused as our UI shows the layer type using graphical icon.

Expansions 1. and 2. work especially nicely for the problematic 'k-market' search. Name + street address is a very natural way to identify the items.

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

No branches or pull requests

4 participants