PHP -> Google Earth KML timestamp
Posted: Wed Feb 25, 2009 9:29 am
I've built a php script that calculates the sun's azimuth and altitude based on observers lat/long position. This script generates kml, which forms my network link. When I run the network link in Google Earth, the placemark position is updated every 60 seconds and each time it updates, a timestamp is refreshed to show the current time.
I really need a clear understanding of how I could set up the php to generate a new placemark and a new timestamp each time the link is refreshed so that I end up with a set of placemarks and corresponding timestamps for a 24 hour period. This way, GE will display a time slider based on the timestamp data and the user will be able to scrub through the different times and watch the sun's movement.
I've tried for loops with different kinds of conditions but this doesnt seem to work. I'm really stumped on this as my knowledge of php is limited. Would greatly appreciate any help!
Thanks
I really need a clear understanding of how I could set up the php to generate a new placemark and a new timestamp each time the link is refreshed so that I end up with a set of placemarks and corresponding timestamps for a 24 hour period. This way, GE will display a time slider based on the timestamp data and the user will be able to scrub through the different times and watch the sun's movement.
I've tried for loops with different kinds of conditions but this doesnt seem to work. I'm really stumped on this as my knowledge of php is limited. Would greatly appreciate any help!
Thanks