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
new quest: adding religion to place_of_worship, fixes #777 #802
Conversation
774ab67
to
651a232
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The research for popular religions is not that good. I might look into that tomorrow myself.
return "nodes, ways, relations with amenity=place_of_worship and" + | ||
" !religion and" + | ||
" name and" + | ||
" (access !~ private|no)"; // exclude ones without access to general public |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'd still be able to see it from the outside.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about edge cases like PoW in a military base or a prison. Are you sure that it should be dropped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dropped
public class AddReligionToPlaceOfWorshipForm extends ImageListQuestAnswerFragment | ||
{ | ||
private static final int | ||
MAX_DISPLAYED_ITEMS = 24, INITIALLY_DISPLAYED_ITEMS = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is unnecessary. There are less than 24 items and getMaxNumberOfInitiallyShownItems could just return 8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should be dropped in case of extracting only createItems rather than making an abstract class/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
IL: [jewish, christian, muslim] | ||
IN: [hindu, christian, muslim, buddhist, sikh, jain] | ||
IQ: [muslim] | ||
IR: [muslim] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know where Bahai Faith is from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Wikipedia
It initially grew in Iran (Persia) and other parts of the Middle East region, where it has faced ongoing persecution since its inception.[2] Currently it has between 5 and 7 million adherents, known as Bahá'ís, spread out into most of the world's countries and territories
Given persecution in their home area, spread across world and low total numbers it was not surprising that they are not appearing on list of any country (though it may be next weakness of OSM data).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://en.wikipedia.org/wiki/Iran#Religion
according to statistics center of Iran, Bahais constitute only about 0.37% of Iran
last data mentioned in https://en.wikipedia.org/wiki/Bah%C3%A1%27%C3%AD_Faith_in_Iran is from 1920
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first sentence of this article says "The Bahá'í Faith in Iran is the country's second-largest religion after Islam"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somehow I missed it, I added now bahai in Iran
I'd say that this sort method could be put into some static class as a static method. |
I'd rather use official religion statistics. OSM is very incomplete here. |
Done. |
Now only issue of religion data should remain...
I agree, but it seems to me that OSM is incomplete in places that have no OSM editors including StreetComplete users.
Is data from http://data.un.org/Data.aspx?q=population+religion&d=POP&f=tableCode%3a28%3bsexCode%3a0&c=2,3,6,8,10,12,14,15,16&s=_countryEnglishNameOrderBy:asc,refYear:desc,areaCode:asc&v=1 significantly better? |
Whoa, in what time zone do you live, if you are up at half past one on the one hand but also up at 5, 6,7 and 9 in the morning? |
I don't know, it is a little too detailed and thus maybe hard and a lot of work to go through there. After all, the information we gather should just be used to change the order a bit. I'll search through wikipedia a bit now. |
import de.westnordost.streetcomplete.view.Item; | ||
|
||
public class PriorityList { | ||
public static List<Item> BuildList(List<Item> allItems, List<String> popularNames){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to usual Java naming conventions, functions always start with lowercase letters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ops, fixed.
Unfortunately my timezone is not interesting (Poland) and what worse today there was a very interesting and loud noise outside on early morning. |
hey, I am back. Spent the last hours to do some extensive research on wikipedia, mostly 💦 Shinto is Japanese folk religion. But another, more important folk religion was left out, Chinese folk religion (aka Chinese traditional religion, Han folk religion, Chinese popular religion, Sheinism), because I guess there are little sources on that. Also, I have to say my first impression on the popularReligions.yml was wrong, it really for the most part coincides with my research. |
So it is ready for merging (I know that it may wait for end of the feature freeze) or is there something to do? BTW, I would recommend adding chinese_folk value to https://wiki.openstreetmap.org/wiki/Key:religion as currently it is neither listed there nor used even once in the OSM data (I am not planning to add this as I have no idea is it a good idea or not). |
Well you forgot to export the metadata. You should test if the religion quest displays and works correctly though. I.e. also in a country where there is a different order than the usual one. |
I did it, including making some edits.
Unfortunately I failed to to this one. Would it make sense to include in CONTRIBUTING.md a checklist what should be done before making a PR? |
I plan on retesting it in countries with nonstandard religion order (though this time it will be harder to make test edits - is there a better solution than making edit and reverting it with "sorry, test edit"?), but for now my SC install is locked by #812 (comment) |
You can turn off auto upload and/or remove authorization so that the app cannot upload changes, then undo. |
Or disable internet connection and uninstall app before enabling it (my method so far, undo one seems to be far better - thanks, I though that with undo edit + undo edit would still be send). Anyway, is there some way to examine what edit would be made? I want to catch bugs noticeable only on examining edit made by app - 926a30f (adding building tag always collided with present building=yes, was fixed by rather modifying it) In past I also had bug that resulted in incorrect changeset description, I am unsure how to catch this without making a real edit. |
So tell me when this is tested and can be merged |
this quest has high priority as it is both relatively rare and used by major data consumers in a prominent way
…tracting function
…lk, caodai, bahai, jews and sikh around the world (wikipedia) - add Chinese folk religion - sort standard order by worldwide distribution *minus* those already sorted in popularReligions.yml - show only 4 items by default - remove Confucianism: indistinguishable from Chinese folk religion / not really a religion
It is rebased and tested and I consider it ready for merge. |
merged! |
Thanks for review and merging! |
Though, I would still recommend adding chinese_folk value to https://wiki.openstreetmap.org/wiki/Key:religion as currently it is neither listed there nor used even once in the OSM data (I am not planning to add this as I have no idea is it a good idea or not). |
Ok |
this quest has high priority as it is both relatively rare and used by major data consumers in a prominent way
For now statistics about religions are from OSM itself. I did it for following reasons
Open issues