AussieKlutz Posted December 2, 2008 Share Posted December 2, 2008 Hey guys. I was going through some old site code while doing a major recode and rebuild, when I found some code I used earlier on in the year that I want to tidy up and put out there for the community. The story is that I was moving from far north-west queensland, australia to tasmania, australia. A roadtrip of about 4000 Km. I wanted to be able to post to my blog en-route and provide a map so that my family and friends could see where I was at. The first thing was a simple little php script that logged into a pop3 mailbox and parsed a email into a blog post. I also had a similar script that parsed and stored a gps location. Being kinda poor, owning an old phone with no wap and sms' being so cheap, I found a free sms to email gateway. This allowed me to post my blogs as well as update my location in a database. The second piece of code took the gps points out of a route (from .... to ....) in a google maps kml file (the compressed file in a kmz file) and drew them using the image functions in php. I also drew some other kml files into the image to give me state borders, etc. I also drew some city points and names, giving a result something like this: Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.