Read Me
Getting started.
There are 2 different scenarios:
A: You have been driving and you have a track as gpx file
walk, bicycle, does not matter, with satellite navigation.
B: You've been to several places, and you have no track.
(you had no satellite navigation)
Several examples are provided to show the variants:
demo1 = show map, markers and photos.
demo2 = show map, markers, photos and route of straight lines.
demo3 = show map, markers, photos and GPX-route.
demo4 = show map, markers, photos, GPX-route, hide-home location.
demo5 = show map, click marker to see photo.
demo6 = as demo3 but get comment from the exif in the photos.
note: examples 1,2,3,4 have a layout suitable for up to 6 photos.
example5 layout was designed to cope with more photos.
Requirements:
- Python 3.
- python-pillow (image library to create thumbnails).
- python-lxml (XML parsing for GPX file processing).
- libgexiv2 (phote exiv parsing)
https://www.gnu.org/licenses/gpl.html
Licence: GNU General Public License (GPL),
*Henk Speksnijder 20170212*
----- A -----
Say we call this trip: amsterdam
Create a foler ams
From you satnav, get a GPX file : ams.gpx
put some nice photos in the folder.
Make a resourcefile: ams.rc
> webroute.py ams.rc /somedir/amsterdam
This will process the ams.rc + the photos + ams.gpx
and create html in directory: somedir/amsterdam
----- B -----
Say we call this trip brussels
We do not have a GPX file.
put some nice photos in the folder.
Make a resourcefile: brus.rc
> webroute.py brus.rc /somedir/brussels
This will process brus.ams + the photos
and create html in directory: somedir/amsterdam
======= A - Resourcefile ========
Use a plain text editor to create the rourcefile
[Header]
Title: Amsterdam biketrip
Template: routetemplate.tpl
Markers: leaflet/markers.js
gpxifn: ams.gpx
Thumb: i150830a.jpg
[A]
M:
F: i150830a.jpg
C:
[B]
M:
F: i150830b.jpg
C:
# [C] lines that start like this are ignored
# M = map location Lon/Lat
# F = Foto filename
# C = Comment or Caption for the photo
======= B - Resourcefile ========
Title: Brussels visit
Template: routetemplate.tpl
Markers: leaflet/markers.js
Thumb: DSC00106.JPG
[A]
M: 50.846732, 4.352414
F: DSC00103.JPG
C: Grand Palace
[B]
M: 50.844993, 4.349978
F: DSC00105.JPG
C: Manneke Pis
[C]
M: 50.894941, 4.341547
F: DSC00106.JPG
C: Atomium