wikiloc-earth-layer

Wikiloc Google Earth layer

GitHub Workflow Status (branch) Uptime Robot status Uptime Robot ratio (7 days) GitHub go.mod Go version Docker Image Size (tag)



View Wikiloc.com trails in Google Earth.

Tiny http server written in Go that fetch trails from wikiloc.com to compose KML updates in the Google Earth view area.


Usage

Use demo server from Google Earth Pro

Use locally from Google Earth online

You can’t. Download Google Earth Pro.

Use locally from Google Earth Pro

Known issues

Slow or unresponsive service using remote KMZ

The service is currently hosted in an unscaled machine that has the computing power of a coffee maker. Each request to the server must handle up to 25 calls to wikiloc, involving geometric calculations and encoding/decoding operations for each of them, so it’s easy that the server blown down with multiple users connected. Furthermore, an excessive amount of requests to the Wikiloc servers could trigger their rate limiters. If you want a decent lag, follow the Use locally from Google Earth Pro instructions to host the service yourself.

When camera is tilted, the resulting trails are far from the view area

Yep. When camera is tilted, the area you are exploring is the Lat-Lon point from the top right to the bottom left corner of the screen. Straighten your view to get a more precise result.

Tips and tricks

I recommend using the layer in combination with

Show measurements in imperial units
If you want to use imperial units, use the env var UNITS=imperial and restart the server

Development and contribution

The project is a suite of 3 software

In the Makefile are defined the commands to run and build the source.
The project is set up to follow the guidelines of the Golang team that you can find here.

Build with Go

Build with Docker

Working with dev containers

This repository provide all the tools to start writing and testing your code without any configuration.
To use devcontainer feature you need to have Docker installed and the Remote Containers extension enabled in VSCode.
See Developing inside a Container for details.

Licence

GNU GPLv3