Skip to content

Instantly share code, notes, and snippets.

@displayn
Last active December 23, 2015 02:19
Show Gist options
  • Save displayn/6566067 to your computer and use it in GitHub Desktop.
Save displayn/6566067 to your computer and use it in GitHub Desktop.
just a note to request fuel prices from popular fuel station in germany.

#Tankstellen "API's"

##TankenApp

###Step 1: Find your current Location (longitude/latitude) Hamburg

###Step 3: Paste the longitude and latitude from the Google-Json in your own post

####Query Fuel-Types:

http://fuel-companion-s.chartcloud.net/api/v1/fuels.xml

####Request Data with a Post:

Useragent from the App:

KW/TankenApp/1.1/iPad5,1/6.1.10/de_DE

Request-url:

http://fuel-companion-s.chartcloud.net/api/v1/search

with following form data:

Input Name Value Example Value
Fuels Super,Diesel, Super E10, SuperPlus,Autogas,Biodiesel,Lkw-Diesel,DieselPlus Diesel
lng longitude 10.123492
lat latitude 53.717145
price_age age in Hours? 12
radius radius in km 10

####Response The response will be in xml.

Nice work guys :)

##Clever-Tanken.de

#####Request Data

https://secure.clever-tanken.de/3rdpty/iphone-mswag-umkreis_pw.asp?veraltete=1&l=0.00000&user=devel1&r=5&sprit=
       alle&pwd=mswag_11&b=0.00000&securepw=xxxxxxxx

Attention

I have no idea how they generate the "securepw"-stuff. Possible stuff like date or time… I dont't know.

##mehr-Tanken.de

#####Request Data.. oh jesus it is a get-Request:

http://mehr-tanken.de/list?result=xml&city=Hamburg&brand_id=0&fuel_id=2&radius=10&interval=0&show_prices=0&mod=default&order=date

Change the fuel-type with:

&fuel_id=intvaluefromlist
Name Value
Super (E10) 1
Super (E5) 2
Super Plus 3
Diesel 4
Autogas (LPG) 12

You can also add a nice stuff like:

&device=iphone&os=8.1.3

####Response Oh yeah xml

have a look at the mts-values in the xml!

Carried Together 14. September 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment