Open source hiking (but not only) app. Work in progress...
Go to file
Eric van der Vlist 2f57bff6ed Updating capacitor and android config to change appname 2022-12-12 14:40:46 +01:00
.vscode Fresh install 2022-11-25 16:33:59 +01:00
src Begining to implement a GPX Dialog component 2022-12-12 11:41:09 +01:00
.gitignore Fresh install 2022-11-25 16:33:37 +01:00
AndroidManifest.xml Updating capacitor and android config to change appname 2022-12-12 14:40:46 +01:00
README.md Updating capacitor and android config to change appname 2022-12-12 14:40:46 +01:00
cSpell.json i18n 2022-11-30 13:58:55 +01:00
capacitor.config.ts Updating capacitor and android config to change appname 2022-12-12 14:40:46 +01:00
fix-jest-dom.mjs Fresh install 2022-11-25 16:33:59 +01:00
index.html Fresh install 2022-11-25 16:33:59 +01:00
package-lock.json Begining to implement a GPX Dialog component 2022-12-12 11:41:09 +01:00
package.json Replacing PouchDB indexes (used only to get the list of Gpxes by a custom implementation. 2022-12-11 10:45:08 +01:00
pnpm-lock.yaml Fresh install 2022-11-25 16:33:59 +01:00
setupVitest.ts Fresh install 2022-11-25 16:33:59 +01:00
tsconfig.json GPX import. 2022-11-26 22:04:08 +01:00
vite.config.ts (Re)Implementing the map chooser. 2022-11-28 19:33:02 +01:00

README.md

Dyomedea

Hiking app.

Documentation

vdv@nuc:~/projects/tea/dyomedea/dyomedea$ npx typedoc 
./src/serviceWorkerRegistration.ts:21:0 - warning Config is referenced by serviceWorkerRegistration.register.register.config but not included in the documentation.

21    type Config = {

Documentation generated at ./doc
vdv@nuc:~/projects/tea/dyomedea/dyomedea$ 

Components

TBD

Data formats

There is a number of data formats more or less specific to geography and hiking, such as:

SVG is very generic and is used to draw 2D figures in HTML applications and doesn't care about geography.

KML, GeoJSON and OSM elements have been designed to represent generic geographical points and shapes.

GPX is more specific, having been designed to represent routes and tracks and its semantics are directly useable in our application.

The structure of our components and indexes can therefore follow the GPX format.

OSM elements is interesting to extract information from the OSM DB, either by querying their API or by downloading portions of the database.

GeoJSON might be of interest as an intermediate format since a number of JS libraries have been developed to perform queries or draw GeoJSON data as SVG.

KML might be considered as an import format.

And SVG, of course will be used to render tracks and routes on a map since its elements are directly supported by React.

Notes to self

Patching node_modules

This can be done by updating their sources in the node_modules directory and using the patch-package npm CLI command (thanks stackoverflow) :

$npx patch-package localized-strings

However, it takes ages before ionic serve takes these modifications into account.

Visual Code snippets

Useful commands

vdv@nuc:~/projects/tea/dyomedea/dyomedea$ adb --version
Android Debug Bridge version 1.0.41
Version 33.0.3-8952118
Installed as /homext/Android/Sdk/platform-tools/adb

$ ionic capacitor run --target RFCN20NEZ4R   android

$ ionic serve --no-open

$ npm test

$ npx typedoc

$ npx trapeze run trapeze.config.yaml 

vdv@nuc:~/projects/tea/dyomedea/dyomedea$ echo $ANDROID_SDK_ROOT
/home/vdv/Android/Sdk

To (re)generate android/

$ rm capacitor.config.ts
$ rm -rf android
$ npx cap init dyomedea com.dyomedea.dyomedea # assets in dist/
$ npx cap add android
$ cp  AndroidManifest.xml ./android/app/src/main/AndroidManifest.xml
$ npx cap run --target RFCN20NEZ4R   android