I like go hiking and I usually track the route. Not so long ago, the only way to share and embed this tracks (.gpx) was to convert them to .kml format and publish in Google Maps. Today I've tried to publish my last route with CartoDB and I'm very happy with the result.
This is a simple recipe to share a .gpx route and embed in your own website.
You need an account in CartoDB. You know how to track your own routes and know what's a .gpx file.
Create the map
- Download the .gpx in your computer
- In CartoDB, click in “New map” (green button), and choose again “Create new map” from scratch
- In the next step, go to the section “Connect DataSet” > “Data file”. Click on “Select a file” (blue button) and select your .gpx
- Then, click on “Connect a dataset” (green button) and wait for it.
- If everything went ok, you'll see your route on a map. Congratulations!!
Customize the map
- If you don't like how the route is displayed on the map, you can change different settings:
- in the bottom left of the window, you'll be able to change the basemap and some options
- in the right side of the window, you'll find some options to change colour and form of the route
Publish and embed
- Once you're happy with the map, click in the “Publish” button, copy the “Embed it” code and paste into your webpage / blog post.
You can see the map in CartoDB and also how it's embeded:
For this little recipe, I used the official documentation, where you can find more tutorials and howtos.