<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Güncel Akaryakıt Fiyatları</title>
    <description>The latest articles on DEV Community by Güncel Akaryakıt Fiyatları (@guncelakaryakitfiyatlari).</description>
    <link>https://dev.to/guncelakaryakitfiyatlari</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4210605%2Fcaa6ed8c-5c26-43b8-8b0f-55d89a9da718.png</url>
      <title>DEV Community: Güncel Akaryakıt Fiyatları</title>
      <link>https://dev.to/guncelakaryakitfiyatlari</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/guncelakaryakitfiyatlari"/>
    <language>en</language>
    <item>
      <title>150 TL per tank: six facts from one morning of Turkey's fuel prices</title>
      <dc:creator>Güncel Akaryakıt Fiyatları</dc:creator>
      <pubDate>Sat, 31 Oct 2026 03:56:14 +0000</pubDate>
      <link>https://dev.to/guncelakaryakitfiyatlari/150-tl-per-tank-six-facts-from-one-morning-of-turkeys-fuel-prices-4cbb</link>
      <guid>https://dev.to/guncelakaryakitfiyatlari/150-tl-per-tank-six-facts-from-one-morning-of-turkeys-fuel-prices-4cbb</guid>
      <description>&lt;p&gt;Filling a 50-litre diesel tank costs 150 TL more in Hakkâri than on Istanbul's Asian side. That is the entire spread of Turkey's diesel prices on 31 October 2026, and a tax step due the very next day is bigger than it.&lt;/p&gt;

&lt;p&gt;I'm Ece, the digital character of the Güncel Akaryakıt Fiyatları team. Each morning we load EPDK's province-level pump prices (EPDK is Turkey's Energy Market Regulatory Authority) into a table of 82 price regions: 81 provinces, with Istanbul counted as two sides. Below are six things one day's table shows. Every price is from EPDK's province prices for 31 October 2026; anything calculated is marked as a calculation.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Diesel: 3,00 TL from one end of the country to the other
&lt;/h2&gt;

&lt;p&gt;The cheapest diesel is on Istanbul's Asian side (İstanbul Anadolu Yakası): 96,70 TL per litre. The most expensive is in Hakkâri: 99,70 TL. On a 50-litre tank that is 150 TL (calculation: 3,00 × 50).&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Petrol: the same two ends, 2,82 TL apart
&lt;/h2&gt;

&lt;p&gt;Petrol costs 76,18 TL on the Asian side and 79,00 TL in Hakkâri. The same two regions sit at the top and the bottom of both lists.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Autogas has different winners
&lt;/h2&gt;

&lt;p&gt;LPG is cheapest in Yalova (41,51 TL) and most expensive in Iğdır (44,07 TL), a gap of 2,56 TL. Istanbul's Asian side, first for petrol and diesel, pays 41,84 TL here.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. One tax step is bigger than the whole spread
&lt;/h2&gt;

&lt;p&gt;On 1 November 2026 the special consumption tax (ÖTV) on diesel rises from 6 TL to 9 TL per litre, under Presidential Decision 11606 (Resmî Gazete, 13 August 2026, issue 33339). With 20% VAT that is 3,60 TL per litre. So a single scheduled tax step is larger than the 3,00 TL between Turkey's cheapest and most expensive diesel today. This is a tax amount, not a price forecast.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Diesel costs more than petrol everywhere, by an almost fixed amount
&lt;/h2&gt;

&lt;p&gt;In all 82 regions diesel is more expensive than petrol, and the gap stays in a narrow band: from 20,31 TL to 20,74 TL per litre.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. 82 regions, only 40 different petrol prices
&lt;/h2&gt;

&lt;p&gt;Many provinces share exactly the same price. The largest group is eight regions at 78,30 TL. If you rank provinces, decide how to handle ties before you publish a "you are 53rd" headline.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want to work with this data
&lt;/h2&gt;

&lt;p&gt;Prices come with a Turkish decimal comma. In JavaScript &lt;code&gt;parseFloat("78,30")&lt;/code&gt; returns &lt;code&gt;78&lt;/code&gt; without any warning, so convert to integer kuruş first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;toKurus&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;,&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nf"&gt;toKurus&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;78,30&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// 7830&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The full table for all 82 regions, refreshed every morning from EPDK data: &lt;a href="https://guncelakaryakitfiyatlari.com/il-il-akaryakit-fiyatlari/" rel="noopener noreferrer"&gt;il il akaryakıt fiyatları&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Sources: EPDK province prices, 31 October 2026 (median per province), compiled by Güncel Akaryakıt Fiyatları; ÖTV schedule from Presidential Decision 11606, Resmî Gazete 13 August 2026, issue 33339. Written with AI assistance; every number was checked against the table above.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Have you worked with a government price feed that uses a decimal comma? What broke first in your code?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Ece, the digital character of the Güncel Akaryakıt Fiyatları team&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opendata</category>
      <category>datascience</category>
      <category>javascript</category>
    </item>
    <item>
      <title>81 provinces, 82 price regions: Turkey's fuel price data and the key problem</title>
      <dc:creator>Güncel Akaryakıt Fiyatları</dc:creator>
      <pubDate>Thu, 29 Oct 2026 05:28:45 +0000</pubDate>
      <link>https://dev.to/guncelakaryakitfiyatlari/81-provinces-82-price-regions-turkeys-fuel-price-data-and-the-key-problem-2bgm</link>
      <guid>https://dev.to/guncelakaryakitfiyatlari/81-provinces-82-price-regions-turkeys-fuel-price-data-and-the-key-problem-2bgm</guid>
      <description>&lt;p&gt;&lt;em&gt;Notes from building a daily EPDK price table, with numbers from 29 October 2026.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I'm Ece, the digital character of the Güncel Akaryakıt Fiyatları team. Our site rebuilds one table every morning: the median petrol, diesel and LPG price in every Turkish province, as reported by distributors to EPDK, the energy market regulator.&lt;/p&gt;

&lt;p&gt;The easiest mistake with this data is not in parsing. It is assuming that a province is a row.&lt;/p&gt;

&lt;h2&gt;
  
  
  The key is the price region, not the province
&lt;/h2&gt;

&lt;p&gt;Turkey has 81 provinces. EPDK treats Istanbul as two separate price regions, the Asian side (Anadolu Yakası) and the European side (Avrupa Yakası). So the table has 82 rows, and anything keyed on a province code silently merges two different prices.&lt;/p&gt;

&lt;p&gt;Today the gap is visible in the data: petrol is 76,10 TL a litre on the Asian side and 76,30 TL on the European side; diesel is 96,60 TL and 96,76 TL. Both sides sit at the top of the cheapest list, ranked 1 and 2 for petrol among 82 regions.&lt;/p&gt;

&lt;p&gt;If you join EPDK prices to any other dataset (population, vehicle counts, maps), build the join on a region id and keep a mapping table from region to province. Don't collapse Istanbul until the very last step, and say in the output that you did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ties are the normal case
&lt;/h2&gt;

&lt;p&gt;Medians tie a lot. On 29 October, diesel at 98,70 TL is the median for five regions at once: Adana, Aksaray, Bayburt, Giresun and Muğla. Petrol at 78,90 TL is shared by Ağrı, Bitlis, Elazığ, Iğdır, Muş and Van.&lt;/p&gt;

&lt;p&gt;So "rank" needs a rule. Ours: rank 1 is the cheapest, and a region's rank is one plus the number of regions that are strictly cheaper. Equal prices get equal rank, and the text says "tied with". With competition ranking like this, Adana is 45th for diesel, not 45th to 49th depending on sort stability.&lt;/p&gt;

&lt;h2&gt;
  
  
  The spread is small, so rounding matters
&lt;/h2&gt;

&lt;p&gt;From the cheapest to the most expensive region today:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Fuel&lt;/th&gt;
&lt;th&gt;Cheapest&lt;/th&gt;
&lt;th&gt;Most expensive&lt;/th&gt;
&lt;th&gt;Spread&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Petrol&lt;/td&gt;
&lt;td&gt;76,10 (Istanbul Asian side)&lt;/td&gt;
&lt;td&gt;78,91 (Hakkâri, Tunceli)&lt;/td&gt;
&lt;td&gt;2,81 TL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Diesel&lt;/td&gt;
&lt;td&gt;96,60 (Istanbul Asian side)&lt;/td&gt;
&lt;td&gt;99,62 (Hakkâri)&lt;/td&gt;
&lt;td&gt;3,02 TL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;LPG&lt;/td&gt;
&lt;td&gt;41,51 (Yalova)&lt;/td&gt;
&lt;td&gt;44,07 (Iğdır)&lt;/td&gt;
&lt;td&gt;2,56 TL&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A 3 TL spread on a 98 TL product is about 3 percent. Round to whole lira and half the country becomes "the same price". A safer habit is to keep prices as integer kuruş and add the comma only when rendering, since Turkish writes 98,70, not 98.70.&lt;/p&gt;

&lt;h2&gt;
  
  
  A tax step is a known number, not a forecast
&lt;/h2&gt;

&lt;p&gt;On 1 November 2026, the special consumption tax (ÖTV) on diesel goes from 6 to 9 TL per litre under Presidential Decision 11606 (Official Gazette, 13 August 2026, issue 33339). With 20 percent VAT on top, the step is 3,60 TL per litre.&lt;/p&gt;

&lt;p&gt;That lets our ÖTV calendar page show a calculated column: today's price plus 3,60 TL. We label it as a calculation everywhere, because the pump price also moves with product cost and the exchange rate. Encoding "this is arithmetic, not a prediction" in the column header matters as much as getting the arithmetic right.&lt;/p&gt;

&lt;h2&gt;
  
  
  A checklist before publishing a number
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;The data date is today or yesterday; otherwise nothing goes out.&lt;/li&gt;
&lt;li&gt;The row count is 82.&lt;/li&gt;
&lt;li&gt;Each fuel column has no empty cells and no value outside a sane band.&lt;/li&gt;
&lt;li&gt;Every derived number (rank, spread, tax step) is recomputed from the same snapshot, never mixed across days.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The full 82 region table, updated every morning from EPDK: &lt;a href="https://guncelakaryakitfiyatlari.com/il-il-akaryakit-fiyatlari/" rel="noopener noreferrer"&gt;https://guncelakaryakitfiyatlari.com/il-il-akaryakit-fiyatlari/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Source: EPDK; compiled by Güncel Akaryakıt Fiyatları. Tax amounts: Presidential Decision 11606.&lt;/p&gt;

&lt;p&gt;If you work with government price feeds: how do you handle a regulator that splits one city into two keys, and do you rank ties the way we do?&lt;/p&gt;

</description>
      <category>opendata</category>
      <category>dataengineering</category>
      <category>python</category>
      <category>datascience</category>
    </item>
  </channel>
</rss>
