GoBlog can show GPX tracks as SVG now

 

After my bike tour on Monday, I first felt the usual exhaustion, but later that evening and night, more symptoms joined and showed me, that I, again (third time already this year), caught some infection. Nothing too bad, but it forced me to relax and recover the last two days.

As I can’t watch YouTube or sleep the whole day, I endeavored a little new task. Andrés asked me if I could implement something like James Van Dyne has: A SVG representation of a GPX track.

What was already possible with GoBlog is displaying an interactive map (see my linked post above). However, this has some privacy implications, as you could find out where I live exactly. It is possible to disable the interactive map, but then saving the GPX in GoBlog has no real use.

Taking inspiration from James, I implemented the SVG representation as well. It will be shown when the interactive map is disabled for a post.

As my brain is a bit foggy currently, I asked Claude AI for help, because it usually provides me better programming help than ChatGPT. And it actually provided some adequate code drafts and also helped me customize and refactor the code. After asking why the SVG looked different from the polyline on the Leaflet map, it also provided my with some code for the Web Mercator projection, which I wouldn’t be able to implement in my current state myself. In the end, the SVG generation is less than 35 lines of Go code and is done on-the-fly when rendering a post page.

The SVG is also rendered in GoBlog’s editor preview and finally gives me a way to check the pasted GPX before publishing the post.

(I hope this post makes sense, foggy brain etc…)

Interactions & Comments

Jan-Lukas Else

24 Jul 2024 at 18:21

Post-vacation bike tour

 

Today was my first workday after summer vacation, and with the weather being pleasant – not too hot, and no rain – I decided to finish work a bit early and go for a 39-kilometer bike tour through the surrounding area.

The first half of the ride was mostly uphill (since it’s a low mountain range) and somewhat demotivating as I was slower than I wanted to be. City traffic, suboptimal bike infrastructure, and traffic lights added to the delays. However, after a quick stop at a castle to take a picture, the second half of the ride, which was mostly downhill and with better infrastructure, was much more enjoyable.

This trip taught me that hard times are often followed by rewarding experiences. It can’t always be easy.

Or can it be? Maybe I should take my bike with me the next time I go to my second flat for more than just three days, as the area there has far fewer hills and mountains.

A picture of the Schloss Wilhelmsthal near Kassel, Germany

Interactions & Comments

Jan-Lukas Else

22 Jul 2024 at 19:43



Refresh complete

ReloadX
Home
(225) All feeds

Last 24 hours
Download OPML
A Very Good Blog by Keenan
*
A Working Library
Alastair Johnston
Andy Sylvester's Web
Anna Havron
annie mueller
Annie Mueller
*
Apple Annie's Weblog
*
Articles – Dan Q
*
Austin Kleon
*
Baty.net posts
bgfay
Bix Dot Blog
*
Brandon's Journal
*
Chris Coyier
Chris Lovie-Tyler
*
Chris McLeod's blog
*
CJ Chilvers
CJ Eller
*
Colin Devroe
*
Colin Walker – Daily Feed
Content on Kwon.nyc
*
Dave's famous linkblog
daverupert.com
Dino's Journal 📖
dispatches
E L S U A ~ A blog by Luis Suarez
*
Excursions
*
Flashing Palely in the Margins
Floating Flinders
For You
Frank Meeuwsen
frittiert.es
Hello! on Alan Ralph
*
Human Stuff from Lisa Olivera
inessential.com
*
Interconnected
Into the Book
*
jabel
Jake LaCaze
*
James Van Dyne
*
Jan-Lukas Else
*
Jim Nielsen's Blog
Jo's Blog
*
Kev Quirk
lili's musings
*
Live & Learn
Lucy Bellwood
Maggie Appleton
*
Manton Reece
*
Manu's Feed
maya.land
Meadow 🌱
Minutes to Midnight RSS feed
Nicky's Blog
Notes – Dan Q
*
On my Om
One Man & His Blog
Own Your Web
Paul's Dev Notes
*
QC RSS
rebeccatoh.co
*
reverie v. reality
*
Rhoneisms
ribbonfarm
*
Robin Rendle
Robin Rendle
*
Sara Joy
*
Scripting News
*
Scripting News for email
*
Scripting News podcasts
Sentiers – Blog
*
Simon Collison | Articles & Stream
strandlines
the dream machine
*
The Marginalian
*
thejaymo
theunderground.blog
tomcritchlow.com
*
Tracy Durnell
*
Winnie Lim
*
yours, tiramisu
Žan Černe's Blog

About Reader


Reader is a public/private RSS & Atom feed reader.


The page is publicly available but all admin and post actions are gated behind login checks. Anyone is welcome to come and have a look at what feeds are listed — the posts visible will be everything within the last week and be unaffected by my read/unread status.


Reader currently updates every six hours.


Close

Search




x
Colin Walker Colin Walker colin@colinwalker.blog