Menu

Tree [r84] /
 History

HTTPS access


File Date Author Commit
 doc 2021-06-11 henkidefix [r81] add documentation
 resources 2021-01-20 henkidefix [r75] improved ignored files
 test 2021-11-09 henkidefix [r83] improved unittest
 Doxyfile 2020-12-07 henkidefix [r66] add Doxyfile
 Licence.txt 2017-11-12 henkidefix [r39] add licence
 gpxfilter.py 2024-11-11 henkidefix [r84] Minor improvements of issues discovered thanks ...
 gpxmaker.py 2021-11-05 henkidefix [r82] migrate to f-strings plus various other small i...
 history.txt 2021-11-05 henkidefix [r82] migrate to f-strings plus various other small i...
 leaflet.py 2021-11-05 henkidefix [r82] migrate to f-strings plus various other small i...
 photowork.py 2024-11-11 henkidefix [r84] Minor improvements of issues discovered thanks ...
 pylintrc 2018-09-21 henkidefix [r64] minor improvements to meet pylint, pycodestyle
 readme.txt 2018-09-21 henkidefix [r64] minor improvements to meet pylint, pycodestyle
 requirements.txt 2021-11-05 henkidefix [r82] migrate to f-strings plus various other small i...
 routehtml.py 2021-11-05 henkidefix [r82] migrate to f-strings plus various other small i...
 scheme.py 2024-11-11 henkidefix [r84] Minor improvements of issues discovered thanks ...
 utils.py 2024-11-11 henkidefix [r84] Minor improvements of issues discovered thanks ...
 webroutepy.py 2021-11-05 henkidefix [r82] migrate to f-strings plus various other small i...

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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.