I am attempting to create and then run a kml script which shows routes from two points in Python.
I managed to create a route with a wrapper in Python called pygmaps. I wanted to know if it is possible to create a KML script with co-ordinates (latitude and longtitude) in a Python script and then somehow run it as soon as the Python script is executed?
I had success with Pygmaps as it visualises points on a map but I was asked to do this on KML as draws lines from point to point rather than along the route.
This is the pygmap link - Points appear on map google python code
I found a website where the user has uploaded a KML script and run it on Googlemaps.com http://www.ninemoreminutes.com/2009/12/google-maps-with-python-and-kml/
and the link to how its displayed is here : http://maps.google.com/?q=http://www.ninemoreminutes.com/bojomap.kml
I dont know if it is possible. From everythin that I have found out, it seems as though a KML file needs to be created and then either uploaded or run for the map to be shown.
Thanks