-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Output generator tweaks #93
Conversation
You're proposing adding a 4th 'section' to the output text? eg. the one thing to consider is that for mobile clients 'less is more', we introduced the |
+1 It makes sense to add it. (nominatim does) |
@missinglink yes, I think adding a 4th section
This would yield results such as |
@missinglink is this good to go? You can easily turn it off by simply not mentioning the |
I am still 👎 on this sorry, I personally feel that the string returned is not as good as the previous iteration, based on what I see here: http://rawgit.com/pelias/demo/two-servers/index.html#loc=12,40.7255,-73.9795&q=arbil&t=fine&gb=off
Is there a simpler, more human solution we could explore which passes the 'mum test'? |
Thats fair. Yes, we can explore a simpler, more human solution that passes the mum test. I agree with your comment on whether alpha3 values makes any sense to non/semi technical users - it probably doesn't. And if we use While we have to think about mobile/ smaller screens and account for possible rendering issues, we should also keep in mind that the clients can compile their own presentational logic based on the document properties. Another approach to this problem is to let the user decide what version of output text they would like through the API. Perhaps an additional optional parameter lets say
We can also push this one step further and define formats for mobile |
I like the idea of an |
Should we close this PR in favor of another one that implements |
Closing this issue in favor of #100 |
Does adding a 'national' key to the outputSchema make sense? Here's the argument - When Pelias used as a product with a dataset thats global (meaning more than one or two countries), doesn't it not make sense to have a national segment to the output schema. This of-course can be optional if not mentioned in
outputSchema.json
Note: This will cause a bunch of regressions in https://github.com/pelias/acceptance-tests
Fixes #46