NleahciM wrote:Hi - I'd like to take GPS data from an EM-406 and plot it in real time on Google Maps. Does anybody have any experience with anything like this? Thanks!
Not too sure about google maps, but it's possible with google earth with network links.
I wrote a small app that updates a kml file with the location, and another kml is a network link that refreshes the location every second.
For example, this is the KML (called Me.kml) that gets updated when the GPS data comes in:
Code: Select all<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Placemark>
<name>Me</name>
<LookAt>
<longitude>151.100000</longitude>
<latitude>-33.900000</latitude>
<range>48</range>
<tilt>0</tilt><heading>0</heading>
</LookAt>
<styleUrl>root://styleMaps#default+nicon=0x307+hicon=0x317</styleUrl>
<Point>
<altitudeMode>absolute</altitudeMode>
<coordinates>151.100000,-33.900000,45</coordinates>
</Point>
</Placemark>
</kml>
And this is the KML that loads the above data every second:
Code: Select all<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.google.com/earth/kml/2">
<NetworkLink>
<name>Dynamic GPS Link</name>
<description>Dynamically updates your GPS position</description>
<visibility>1</visibility>
<flyToView>1</flyToView>
<url>
<href>Me.kml</href>
<refreshMode>onInterval</refreshMode>
<refreshInterval>1</refreshInterval>
</url>
</NetworkLink>
</kml>