-
1Step 1
Maps a How to:
Collecting the Data:
I used Google Tracks to collect my data because it was simple to use. Just start a recording then tap the thumb tack icon at each waypoint you wish to remember. Once you are finished recording all the points stop the tracker and export the data.
Working with the Data:
Next I imported the data into Google Earth; deleted the track, and the starting and end points. So all I had left were the waypoints. This is the data you can find in the assets folder of the app source code. But to make it more useful as map I added paths between the two waypoints of the same hole.
Creating Paths in Google Earth:
Click the path icon in the menu bar to change your cursor to the path tool, and open a path pop up menu. Just click the map once at the start of your path and once at the end. This will give you a nice straight line between them. Then in the path pop up menu select the measurement tab and check the distance in feet, and lastly select the main tab again and name the path with its distance. I exported all the Google Earth maps to KML and they are in the GPS Data folder.
Graphical Representation:
Import the KML files into Google Earth and change the settings until you are happy. Then either screen capture the image or print it to a file from your browser. These are the PNGs in the Maps! folder.
-
2Step 2
About the Code/Recycling:
The code breaks down into mostly two parts. First the GPS portion which I lifted from a simple GPS sample. Second the parser for the KML files, and because KML files are XML compliant it's rather simple. I used the XML DOM Parser which I cobbled together from three different examples. Either of the two parts might be useful to someone by themselves. Or together as they are it could be used to guide someone along any list of consecutive waypoints, maybe an orienteering course or something similar.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.