Extract and analyze GPS data with Go

I Want More

Of course, these are only crude examples that show what is possible. With a little more effort, more hidden nuggets can be extracted from the data. For example, if you want to identify the regions with the most popular trails, you can use an AI library to track down clusters using the k-means method. In addition, artificial intelligence could suggest previously popular hiking routes that you have not visited for some time. And there's so much more; once the data is recorded, the world is your oyster.


  1. Komoot: https://www.komoot.com/
  2. "Programming Snapshot: Go GPS Data Retrieval" by Mike Schilli, Linux Magazine, issue 252, November 2021, p. 50
  3. Listings for this article: ftp://ftp.linux-magazine.com/pub/listings/linux-magazine.com/256/
  4. OpenCage: https://opencagedata.com

The Author

Mike Schilli works as a software engineer in the San Francisco Bay Area, California. Each month in his column, which has been running since 1997, he researches practical applications of various programming languages. If you email him at mailto:mschilli@perlmeister.com he will gladly answer any questions.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Programming Snapshot – Go

    Every photo you take with your mobile phone stores the GPS location in the Exif data. A Go program was let loose on Mike Schilli's photo collection to locate shots taken within an area around a reference image.

  • Google Chart

    The Google Chart API lets you draw custom graphs, charts, maps, and barcodes through a simple web interface.

  • Treasure Hunt

    A geolocation guessing game based on the popular Wordle evaluates a player's guesses based on the distance from and direction to the target location. Mike Schilli turns this concept into a desktop game in Go using the photos from his private collection.

  • Cave Painter

    While searching for a method to draw geodata right into the terminal, Mike Schilli discovers the wondrous world of map projections.

  • Prune

    Have more fun with your GPS data with this easy-to-use Java-based tool.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.