cycleplanet / cycle-planet

Official Cycle Planet repo, an open source and non-profit network of long distance cyclers and those who want to host them.
https://cycleplanet.org/
MIT License
10 stars 4 forks source link

Caching data and enabling offline usage #1

Open cycleplanet opened 3 years ago

cycleplanet commented 3 years ago

Goal: Allowing long distance cyclists to use the app with the least amount of data usage Long distance cyclists can't spend too much money on mobile data, so data shouldn't be loaded again and again every time a user opens the app. Preferably, the data should be cached, and only new data should be downloaded. Also, in many countries accross the globe, there isn't always a strong connection, but users should still be able to use the app. Therefore the data should be accesible offline.

What's stopping us? A few tests have been made to allow caching. In the root folder "backend" we're already able to retrieve the landmarkers both during developing and production mode, making use of Heroku. See for example this link https://cycle-planet-backend.herokuapp.com/markers. With Axios, we're able to turn this json format to visible landmarkers.

There are a few uncertanties/issues: