EVMap icon indicating copy to clipboard operation
EVMap copied to clipboard

Offline Support

Open alensiljak opened this issue 4 years ago • 10 comments
trafficstars

Is there any chance of having offline support for the charging stations? I'd like to do a longer trip abroad, where the charging stations are rare and scattered. If any of them happens to be inaccessible, there's a huge risk of getting stranded. One way to get out of it would be to have an offline cache of stations in a certain geographical area, for example. Thanks for the great app, BTW!

alensiljak avatar Jun 05 '21 07:06 alensiljak

Thanks! In principle it should be possible, but the GoingElectric API terms&conditions prohibit saving the data for more than 24 hours... so I guess the utility of such a feature would be fairly limited.

johan12345 avatar Jun 05 '21 13:06 johan12345

That is true. Thank you! I will look for alternative solutions for that trip.

alensiljak avatar Jun 05 '21 17:06 alensiljak

Thanks! In principle it should be possible, but the GoingElectric API terms&conditions prohibit saving the data for more than 24 hours... so I guess the utility of such a feature would be fairly limited.

that's the annoying/sad thing about community-driven but unfree data sources :(

kelvan avatar Jun 12 '21 09:06 kelvan

Well, it is understandable that GoingElectric don't want to ruin their reputation with apps that serve potentially out of date data... And free data is great, but operating servers costs money.

I'm also looking into adding OpenChargeMap, see #81. Unfortunately their data is far less complete (and contains less detailed information) in Germany, at least in the areas I have checked.

johan12345 avatar Jun 12 '21 14:06 johan12345

I'd like to mention that somewhere on the GE site there is an option to export the filter results as a GPX file with the chargers as POIs. This can then be imported into OsmAnd. I do it per country and then have the chargers on the navigation map, just as I originally wanted.

alensiljak avatar Jun 12 '21 16:06 alensiljak

There is an option to share a location from Plugshare to OsmAnd, then share geo: from OsmAnd to EV Map. This works well but turns out not useful since adding chargers happens in the browser and therefore the location has to be selected manually anyway. It would be really useful to be able to add new chargers directly in the app. Then the above method of exporting the POIs works great for offline use and navigation.

alensiljak avatar Jun 14 '21 21:06 alensiljak

It would be really useful to be able to add new chargers directly in the app.

Again, that’s not possible with the API, see also #53

johan12345 avatar Jun 14 '21 21:06 johan12345

I would really like to see the option to save the goingelectric data for 24 hours. Example implementation: After 24 hours there is a note, that the data is outdated and thus deleted and a question if you would like to reload the new updated data.

fhvyhjriur avatar Jan 02 '22 00:01 fhvyhjriur

Could you add to the issue-name "for goingelectric.de"? The data sources have different restrictions for offline usage and that is why the implementation is a bit different. openchargemap.org does not have such restrictions and can be discussed here: https://github.com/johan12345/EVMap/issues/156

In general for the implementation it would be great if its possible to have both data sources offline available in EVMap. Like there is a switch in the settings now the switch can then change between offline data from source A or B. There are places where half of the charging stations are available in goingelectric.de, the other half in openchargemap.org . There are even more stations that both datasources dont have that are then available in OpenStreetMap (can be viewed at the moment offline on OsmAnd https://f-droid.org/en/packages/net.osmand.plus/ )

fhvyhjriur avatar Jan 18 '22 16:01 fhvyhjriur

Now that #164 is merged, a big step towards actual offline support is done. Chargers will be cached in the local database as you view them and kept as long as permitted by the data source (24h for GoingElectric, longer for Open Charge Map). What is still missing for true offline use is:

  • a way to manually select an area in which all chargers will be downloaded and refreshed regularly (every 24h for GE as required, less frequently for OCM)
  • a way to influence caching of the background map (for Mapbox we should be able to also download certain areas of the map, for Google Maps this probably needs to be done manually through the Google Maps app)

johan12345 avatar Jun 10 '23 13:06 johan12345