Follow @TeaysValleyFire on Social Media!
TEAYS VALLEY FIRE DEPARTMENT
  • Home
  • Live Call Feed
  • About Us
    • Office of the Chief
    • Station
    • Photo Gallery
    • Maltese Cross
  • Nominate a Firefighter
  • Contact TVFD
  • Resources
    • Is YOURS Working?
    • Fire Prevention and Safety
    • For the Kids
    • Upcoming Events
  • Helpful Links
//HERE WE'RE GOING TO SEND OUR LAT/LONG TO GOOGLE MAPS AND THEN //SCRAPE THE RETURNED WEB PAGE TO SEE IF STREET VIEW IS //AVAILABLE. //IF STREET VIEW IS AVAILABLE, WE'LL PARSE THE STREET VIEW //CAMERA LAT/LONG AND HEADING FROM THE PAGE TO USE IN OUR SV //CANVAS $data = file_get_contents('http://maps.google.com/maps?q=' . $bestlat . ',' . $bestlong); if(preg_match('/cbp=([^;]*)&/',$data,$match)){ $cbp_params = $match[1]; $cbp_params = explode(',',$cbp_params); $bestSVheading = $cbp_params[1]; } if(preg_match('/cbll=([^;]*)&/',$data,$match)){ $cbll_params = $match[1]; $cbll_params = explode(',',$cbll_params); $bestSVlat = $cbll_params[0]; $bestSVlong = $cbll_params[1]; }
Powered by Create your own unique website with customizable templates.