CO2HOTEL function:
|
Introduction
Parameters
country_code : Mandatory. This is a ISO 3166-1 alpha-2 code, pointing to its ISO 3166-2 article. While the list of codes is available at Wikipedia's ISO 3166-1 alpha-2, we are listing the 38 countries and their 2 character codes below in the notes.
city_name : Optional. Enter the city within the country where the hotel is based. The algorithm will search the database for the name and if it is not found, it will search for any emission factors associated with the region in which the city is located.
hotel_rating : Optional. The star rating of the hotel. Enter the value of "2" for a 2-star hotel. Similarly, "3", "4" and "5" will match the corresponding rating of the hotel. If this is not known then leave it as blank.
number_of_nights : Optional. This is the length of the stay in the hotel. The default value is 1.
number_of_rooms : Optional. The number of rooms taken in the hotel. The default value is 1. Note that the number of travelers staying in the same room do not matter.
city_name : Optional. Enter the city within the country where the hotel is based. The algorithm will search the database for the name and if it is not found, it will search for any emission factors associated with the region in which the city is located.
hotel_rating : Optional. The star rating of the hotel. Enter the value of "2" for a 2-star hotel. Similarly, "3", "4" and "5" will match the corresponding rating of the hotel. If this is not known then leave it as blank.
number_of_nights : Optional. This is the length of the stay in the hotel. The default value is 1.
number_of_rooms : Optional. The number of rooms taken in the hotel. The default value is 1. Note that the number of travelers staying in the same room do not matter.
UsageExample |
CO2HOTEL(country_code, [city_name], [hotel_rating], [number_of_nights], [number_of_rooms])
CO2HOTEL("IN","MUMBAI","4","2","1")
|
Countries (and country_code) supported by this function:
Australia (au), Belgium (be), Brazil (br), Canada (ca), Chile (cl), China (cn), Colombia (co), Costa Rica (cr), Egypt (eg), France (fr), Germany (de), Hong Kong (hk), India (in), Indonesia (id), Italy (it), Japan (jp), Jordan (jo), Korea (kr), Malaysia (my), Maldives (mv), Mexico (mx), Netherlands (nl), Oman (om), Philippines (ph),Portugal (pt),Qatar (qa), Russian Federation (ru), Saudi Arabia (sa), Singapore (sg), South Africa (za), Spain (es), Switzerland (ch), Thailand (th), Turkey (tr), United Arab Emirates (ae), United Kingdom (gb), United States of America (us) and Vietnam (vn).