Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $str = file_get_contents('http://dweet.io/get/dweets/for/ahmed_gps_gps');
- $json = json_decode($str, true); // decode the JSON into an associative array
- echo "<b>Date: </b>".$json['with'][0]['created']."<br>";
- echo "<b>GPS_Lat: </b>".$json['with'][0]['content']['gps_lat']."<br>";
- echo "<b>GPS_Long: </b>".$json['with'][0]['content']['gps_long']."<br>";
- echo "<b>GPS_Bearing: </b>".$json['with'][0]['content']['bearing']."<br>";
- echo "<b>GPS_Speed: </b>".$json['with'][0]['content']['speed']."<br>";
- ?>
Add Comment
Please, Sign In to add comment