-
Notifications
You must be signed in to change notification settings - Fork 104
Improve hotel model #247
Comments
Hello! I would be very happy to work on that issue. |
Hi @Magalii, the idea would be to improve the model in https://github.com/tmrowco/tmrowapp-contrib/blob/master/co2eq/lodging.js to incorporate a factor (0.3x for example) per night hotel based on a country. I believe the original model in https://github.com/tmrowco/tmrowapp-contrib/blob/master/co2eq/lodging.js is from Switzerland :) An example on how we've used factors is to look at https://github.com/tmrowco/tmrowapp-contrib/blob/master/co2eq/flights/index.js |
Hi @Magalii are you still interested in helping out? :) |
Hello! Yes, I am still very intersting in working on that issue. I have been incredibly busy those past two weeks and more than I expected, I am sorry I didn't react earlier. I have a bit more time now so I will be able to tackle it. :) |
Hello @martincollignon ! This would require to change the lodging activity format since we would need a mandatory location and not a mandatory hotelClass. It would also be easier to have a location by country and not by longitude and latitude, even though it is possible to find the country from those data. So can I do a model per country or would it break what is already existing? If we want to add more precision to the model based on how polluting a hotel is within its country category, the website https://www.hotelfootprints.org/ provides informations about the lower quartile and higher quartile. So we could find a way to use that, although we would need to find a way to determine if a certain hotel is closer to the lower quartil, higher quartil or median. (The values provided in the document https://docs.google.com/spreadsheets/d/1f1j9EeVn9czOZBJKLXvgPwnmldakxuJ7/edit#gid=1584958883 seems to be the median with actualized data compared to what is found on that website.) If you go to the website, you may also see that it is possible to select a hotel category, but datas are most often missing. Another good way to add more granularity to the model would be to consider the number of people sharing a hotel room since the values we have are per occupied room and not per person. We could thus add that number of people to the lodging activity attributes, possibly as an optional attribute. |
Hi @Magalii ! Sorry for the delay. Feel free to do a model by country. I think right now it would be preferable to have two separate models. You could definitely add a people variable as we have on the transportation.js model. |
I have completed the hotel model based on the countries (without a variable for the number of people for now). Should I adapt the Lodging activity formatting in the README to add a mandatory country field? An optional field to determine which model is to be used could be interesting too. Another option could be to create a new type of activity formatting for that new hotel model that is separate from the lodging activity, but that seems a bit unnecessary to me. Thank you for the extra data document. How did you find it? I was looking for that kind of format, but I didn't see anything like that on the website. |
I can't remember where I found it! |
There is now a hotel model based on countries that can be found in this file: https://github.com/tmrowco/tmrowapp-contrib/blob/master/co2eq/hotelpercountry.js It uses the values for carbon footprint found in the countries.json file that contains all the existing ISO2 country code and the carbon footprint of a hotel stay when that value is known. (https://github.com/tmrowco/tmrowapp-contrib/blob/master/co2eq/countries.json) This model is functionnal, but can still be improved. Here are some ideas I had on improving it:
|
Model per country available here: https://docs.google.com/spreadsheets/d/1f1j9EeVn9czOZBJKLXvgPwnmldakxuJ7/edit#gid=439900614
Could be converted to a factor by country
The text was updated successfully, but these errors were encountered: