init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
49
tanketest.php
Normal file
49
tanketest.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
error_reporting(E_ALL); ini_set('display_errors',1);
|
||||
|
||||
/*
|
||||
$json = file_get_contents('https://creativecommons.tankerkoenig.de/json/prices.php'
|
||||
."?ids"
|
||||
."=e1a15081-25bc-9107-e040-0b0a3dfe563c" // 1 // HEM Leipzig, Braunstr. 1
|
||||
.",e1a15081-261e-9107-e040-0b0a3dfe563c" // 2 // HEM Leipzig, Theklaer Str. 92a
|
||||
.",e1a15081-25bf-9107-e040-0b0a3dfe563c" // 4 // HEM Leipzig, Permoserstr. 80
|
||||
.",e1a15081-25c0-9107-e040-0b0a3dfe563c" // 8 // HEM Leipzig, Zweinaundorfer Str. 74
|
||||
.",e1a15081-261d-9107-e040-0b0a3dfe563c" // 6 // HEM Leipzig, Dieskaustr. 155
|
||||
.",25bbcf0b-95e5-4ccf-8f9c-6621673abe99" // 5 // bft Tankstelle Torgauer Straße 118
|
||||
.",1d5643e1-8f3f-464d-8583-f63f0c8740ff" // 7 // Shell Leipzig Torgauer Str. 308
|
||||
.",0bb16757-fa71-4c60-baad-002055e7ecb2" // 3 // bft Tankstelle Riesaer Straße 56
|
||||
."&apikey=29e0b621-5ac4-52c0-1e12-723fbcf6fba0"); // API-Key
|
||||
$tdata = json_decode($json);
|
||||
$tanke=1;
|
||||
//foreach ($tdata->prices as $data ) {
|
||||
foreach ($tdata as $data ) {
|
||||
//echo $data->prices;
|
||||
|
||||
echo'<pre>'; print_r($data->prices); echo'</pre>';
|
||||
if ($data->status=='open') {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//echo $data->diesel;
|
||||
//echo'<pre>'; print_r($data); echo'</pre>';
|
||||
|
||||
$tanke++;
|
||||
}
|
||||
|
||||
*/
|
||||
$json = file_get_contents('https://creativecommons.tankerkoenig.de/json/list.php?lat=51.340&lng=12.375&rad=25&sort=dist&type=all&apikey=29e0b621-5ac4-52c0-1e12-723fbcf6fba0');
|
||||
|
||||
$tdata = json_decode($json);
|
||||
echo'<pre>'; print_r($tdata); echo'</pre>';
|
||||
|
||||
|
||||
|
||||
//echo'<pre>'; print_r($child); echo'</pre>';
|
||||
//echo'<pre>'; print_r($data); echo'</pre>';
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue