汽车省不省油可以通过计算MPG来大概得到, 所谓的MPG就是 Miles Per Gallon 也就是每加伦油车能开的大概距离, 这个数值是越高越好. 一般来说, 在城市, 车辆MPG大概在20到40之间, 而在郊区或乡村, MPG能到50以上. 影响MPG的因素有很多, 其中:
怎么样计算 汽车MPG?
假设 从上次加油以来, 一共油耗 L 升, 汽车行驶了 M 英理, 那么我们大概可以推出:
- 每百公理油耗多少升:
- 每升油大概能开多少公理:
这里的 1加仑=4.546升,
计算 MPG 的在线工具
我们可以很简单的 做一个 API 来大概估计 MPG, 具体请看此英文技术贴. PHP 源代码为:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | // https://helloacm.com/tools/mpg-calculator/ $miles = $_GET['miles'] ?? ($_POST['miles'] ?? 0); $litres = $_GET['litres'] ?? ($_POST['litres'] ?? 0); $miles = (float)$miles; $litres = (float)$litres; if (($miles == 0) || ($litres == 0)) { $data = array( "error" => "check inputs" ); } else { // Miles per Gallon $mpg = $miles / ($litres / 4.546); // Litres per 100km $per100km = $litres / (($miles * 1.60934) * 0.01); // Kilometres per litre $kmperlitre = $miles * 1.60934 / $litres; $data = array( "mpg" => $mpg, "litres_per_100km" => $per100km, "km_per_litre" => $kmperlitre ); } header("Access-Control-Allow-Origin: *"); header('Content-Type: application/json'); die(json_encode($data)); |
// https://helloacm.com/tools/mpg-calculator/ $miles = $_GET['miles'] ?? ($_POST['miles'] ?? 0); $litres = $_GET['litres'] ?? ($_POST['litres'] ?? 0); $miles = (float)$miles; $litres = (float)$litres; if (($miles == 0) || ($litres == 0)) { $data = array( "error" => "check inputs" ); } else { // Miles per Gallon $mpg = $miles / ($litres / 4.546); // Litres per 100km $per100km = $litres / (($miles * 1.60934) * 0.01); // Kilometres per litre $kmperlitre = $miles * 1.60934 / $litres; $data = array( "mpg" => $mpg, "litres_per_100km" => $per100km, "km_per_litre" => $kmperlitre ); } header("Access-Control-Allow-Origin: *"); header('Content-Type: application/json'); die(json_encode($data));
MPG油耗计算器
只需要填写 从上次加油后 汽车开了多少英理 和 耗了多少升油, 就可以大概估得一个MPG值, MPG在40以上就很不错了. 请注意: 如果您访问的是AMP手机加速版, 下面的Ajax就无法工作了, 请访问完整桌面版或者英文版 MPG Calculator.
填写上面的 英理 和 油多少升, 该在线工具将会自动连接API服务器 得到结果. 如果该功能不工作的话 请访问源网站的 完整桌面版 – 汽车百公里油耗在线计算工具
强烈推荐
- 英国代购-畅购英伦
- TopCashBack 返现 (英国购物必备, 积少成多, 我2年来一共得了3000多英镑)
- Quidco 返现 (也是很不错的英国返现网站, 返现率高)
- 注册就送10美元, 免费使用2个月的 DigitalOcean 云主机(性价比超高, 每月只需5美元)
- 注册就送10美元, 免费使用4个月的 Vultr 云主机(性价比超高, 每月只需2.5美元)
- 注册就送10美元, 免费使用2个月的 阿里 云主机(性价比超高, 每月只需4.5美元)
- 注册就送20美元, 免费使用4个月的 Linode 云主机(性价比超高, 每月只需5美元) (折扣码: PodCastInit2022)
- PlusNet 英国光纤(超快, 超划算! 用户名 doctorlai)
- 刷了美国运通信用卡一年得到的积分 换了 485英镑
- 注册就送50英镑 – 英国最便宜最划算的电气提供商
- 能把比特币莱特币变现的银行卡! 不需要手续费就可以把虚拟货币法币兑换
微信公众号: 小赖子的英国生活和资讯 JustYYUK