Ściągnąłem prosty skrypt, dzięki któremu chcę wyświetlić trasę z punkt A do punkt B.
Mam jedynie problem z tym, by mi pod nazwą A i B wyświetliło ich koordynaty(współrzędne) latitude i longitude. Skrypt pobiera te dane automatycznie, ale ja nie potrafię napisać by mi je wyświetliło...
Tekst wyświetla mi teraz tak:
From: England
To: France
Distance: 971810 meters
Time: 34153 seconds
39 steps between from and to address
a chcę żeby było:
From: England
Lat:
Long:
To: France
Lat:
Long:
Distance: 971810 meters
Time: 34153 seconds
39 steps between from and to address
test.php ten plik wyświetla mi dane
<?php include('googleApiClass.php'); $google = new googleApiClass(); $google->setFromAddress('England'); $google->setToAddress('France'); $google->setLanguage('us'); $google->setImageOutput('png'); $google->setZoom(14); $google->setScale('1'); try{ $pathImg = '/tmp/mapMe.png'; $google->findAddress()->withImage(5,$pathImg); if(!$google->getImgBuffer()){ }else{ } }catch(Exception $e ){ } ?>
plik googleApiClass.php
http://www.phpclasses.org/browse/file/45336.html