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.

Revisions

  1. @Gurken Gurken revised this gist Sep 15, 2013. 1 changed file with 21 additions and 13 deletions.
    34 changes: 21 additions & 13 deletions fuel-prices-in-germany.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,12 @@ Find your current Location (longitude/latitude) [Hamburg](http://maps.googleapis
    ###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:
    @@ -30,7 +36,7 @@ with following form data:
    </thead>
    <tr>
    <td>Fuels</td>
    <td>Diesel, Benzin, Superplus,Bio-Diesel</td>
    <td>Super,Diesel, Super E10, SuperPlus,Autogas,Biodiesel,Lkw-Diesel,DieselPlus</td>
    <td>Diesel</td>
    </tr>
    <tr>
    @@ -61,8 +67,21 @@ 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
    @@ -109,17 +128,6 @@ Oh yeah xml

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

    ##mehr-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.


    Carried Together 15. September 2013
    Carried Together 14. September 2013
  2. @Gurken Gurken revised this gist Sep 14, 2013. 1 changed file with 36 additions and 5 deletions.
    41 changes: 36 additions & 5 deletions fuel-prices-in-germany.md
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,12 @@
    #Tankstellen "API's"

    ##TankenApp (from Kupferwerk GmbH.. published by Deutsche Telekom GmbH)
    ##TankenApp

    ###Step 1:
    Find your current Location (longitude/latitude) [Hamburg](http://maps.googleapis.com/maps/api/geocode/json?address=Hamburg%20&sensor=false&language=de&components=country:DE)

    ###Step 2:
    Paste the longitude and latitude from the Google-Json

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

    ####Request Data with a Post:

    @@ -69,6 +67,39 @@ Nice work guys :)
    ```
    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
    ```
    <table>
    <thead>
    <td>Name</td>
    <td>Value</td>
    </thead>
    <tr>
    <td>Super (E10)</td>
    <td>1</td>
    </tr>
    <tr>
    <td>Super (E5)</td>
    <td>2</td>
    </tr>
    <tr>
    <td>Super Plus</td>
    <td>3</td>
    </tr>
    <tr>
    <td>Diesel</td>
    <td>4</td>
    </tr>
    <tr>
    <td>Autogas (LPG)</td>
    <td>12</td>
    </tr>

    </table>


    You can also add a nice stuff like:
    ```
    &device=iphone&os=8.1.3
    @@ -91,4 +122,4 @@ https://secure.clever-tanken.de/3rdpty/iphone-mswag-umkreis_pw.asp?veraltete=1&l
    I have no idea how they generate the "securepw"-stuff. Possible stuff like date or time… I dont't know.


    Carried Together 14. September 2013
    Carried Together 15. September 2013
  3. @Gurken Gurken revised this gist Sep 14, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions fuel-prices-in-germany.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,7 @@ 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
    ```
  4. @Gurken Gurken revised this gist Sep 14, 2013. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions fuel-prices-in-germany.md
    Original file line number Diff line number Diff line change
    @@ -25,9 +25,9 @@ with following form data:

    <table>
    <thead>
    <td>Input Name</td>
    <td>Value</td>
    <td>Example</td>
    <td>Input Name</td>
    <td>Value</td>
    <td>Example Value</td>
    </thead>
    <tr>
    <td>Fuels</td>
    @@ -46,13 +46,13 @@ with following form data:
    </tr>
    <tr>
    <td>price_age</td>
    <td>12</td>
    <td>age in Hours?</td>
    <td>12</td>
    </tr>
    <tr>
    <td>radius</td>
    <td>10</td>
    <td>radius in km</td>
    <td>10</td>
    </tr>
    </table>

  5. @Gurken Gurken created this gist Sep 14, 2013.
    93 changes: 93 additions & 0 deletions fuel-prices-in-germany.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,93 @@
    #Tankstellen "API's"

    ##TankenApp (from Kupferwerk GmbH.. published by Deutsche Telekom GmbH)

    ###Step 1:
    Find your current Location (longitude/latitude) [Hamburg](http://maps.googleapis.com/maps/api/geocode/json?address=Hamburg%20&sensor=false&language=de&components=country:DE)

    ###Step 2:
    Paste the longitude and latitude from the Google-Json

    ###Step 3:

    ####Request Data with a Post:

    Useragent from the App:
    ```
    KW/TankenApp/1.1/iPad5,1/6.1.10/de_DE
    ```

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

    with following form data:

    <table>
    <thead>
    <td>Input Name</td>
    <td>Value</td>
    <td>Example</td>
    </thead>
    <tr>
    <td>Fuels</td>
    <td>Diesel, Benzin, Superplus,Bio-Diesel</td>
    <td>Diesel</td>
    </tr>
    <tr>
    <td>lng</td>
    <td>longitude</td>
    <td>10.123492</td>
    </tr>
    <tr>
    <td>lat</td>
    <td>latitude</td>
    <td>53.717145</td>
    </tr>
    <tr>
    <td>price_age</td>
    <td>12</td>
    <td>age in Hours?</td>
    </tr>
    <tr>
    <td>radius</td>
    <td>10</td>
    <td>radius in km</td>
    </tr>
    </table>

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

    Nice work guys :)


    ##Clever-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
    ```
    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!

    ##mehr-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.


    Carried Together 14. September 2013