#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