From 12038aca55c8266b32ee23802b3165e2773c0ce7 Mon Sep 17 00:00:00 2001 From: frederic wagner Date: Wed, 9 Nov 2022 08:45:44 +0100 Subject: [PATCH] gipy: openstreetmap from interface ! --- apps/gipy/README.md | 16 +- apps/gipy/interface.html | 40 +-- apps/gipy/pkg/gpconv.d.ts | 30 +- apps/gipy/pkg/gpconv.js | 440 +++++++++++++++++++++++++++++- apps/gipy/pkg/gpconv_bg.wasm | Bin 204497 -> 603943 bytes apps/gipy/pkg/gpconv_bg.wasm.d.ts | 11 +- 6 files changed, 498 insertions(+), 39 deletions(-) diff --git a/apps/gipy/README.md b/apps/gipy/README.md index 4a6921933..6c9b87c23 100644 --- a/apps/gipy/README.md +++ b/apps/gipy/README.md @@ -24,15 +24,14 @@ It provides the following features : (for example when you need to turn in https://mapstogpx.com/) - display instant / average speed - display distance to next node - -optionally it can also : - - display additional data from openstreetmap : - water points - toilets - artwork - bakeries +optionally it can also: + - try to turn off gps between crossroads to save battery ## Usage @@ -49,12 +48,9 @@ You can turn on 'next turn info' and be warned by the watch when you need to tur Once you have your gpx file you need to convert it to *gpc* which is my custom file format. They are smaller than gpx and reduce the number of computations left to be done on the watch. -Two possibilities here : -- easy : upload from here -- hard : use an external tool : [gpconv](https://github.com/wagnerf42/gpconv) - * you need to compile *gpconv* yourself (it is some rust code) - * you can download additional openstreetmap data to get interest points along the path - * you need to upload the obtained *gpc* file manually for example with the [ide](https://www.espruino.com/ide/) +Just click the disk icon and select your gpx file. +This will request additional information from openstreetmap. +Your path will be displayed in svg. ### Starting Gipy @@ -75,7 +71,7 @@ On your screen you can see : * left distance till end of current segment * distance from start of path / path length * average speed / instant speed -- interest points from openstreetmap (using gpconv) as color dots : +- interest points from openstreetmap as color dots : * red : bakery * deep blue : water point * cyan : toilets (often doubles as water point) diff --git a/apps/gipy/interface.html b/apps/gipy/interface.html index d460137c1..cfb9fe971 100644 --- a/apps/gipy/interface.html +++ b/apps/gipy/interface.html @@ -9,6 +9,9 @@ +
+
+