stadtnavi / digitransit-ui

Digitransit UI Clone, especially for the city of Herrenberg ("stadtnavi.de")
https://stadtnavi.de/
Other
13 stars 14 forks source link

Include eCharging VectorTiles map layer #366

Closed leonardehrenfried closed 3 years ago

leonardehrenfried commented 3 years ago

ladestation

We created a mockup a while ago, so we want to go into that direction but we are unsure which pieces of data we will receive from our data source.

Another source of inspiration is Chargemap:

Screenshot from 2021-04-22 16-16-18

patrickbeck1337 commented 3 years ago

Please a more detailed description here ;P

leonardehrenfried commented 3 years ago

I've added a few mockups but we aren't sure what kind of data we will receive.

@the-infinity can you say anything about that?

the-infinity commented 3 years ago

You will get every information which is shown at your mockup - and even images from the chargestation, if you want.

leonardehrenfried commented 3 years ago

Great. We're not sure if we need the photo but please add it to the API call (not the vector tiles) anyway.

For opening hours: can you output the OSM opening hours spec? https://wiki.openstreetmap.org/wiki/Key:opening_hours

the-infinity commented 3 years ago

This will be a bit complicated because we have exceptions. The source data model is like this: https://github.com/e-clearing-net/OCHP/blob/master/OCHP.md#hourstype-class (XML bug in example included :D )

Result is like this: https://github.com/ocpi/ocpi/blob/master/mod_locations.asciidoc#1414-hours-class .

I can try to create OSM based opening times, as far as I can see exceptions are not supported at OSM(?), and transforming is always a bit riscy.

leonardehrenfried commented 3 years ago

Exceptions are supported. You can write something like this:

Mo-Su 08:00-18:00; Apr 10-15 off; Jun 08:00-14:00; Aug off; Dec 25 off

However our frontend parser would not understand that anyway so I would not spend too much time on it. An 80% solution is good enough.

leonardehrenfried commented 3 years ago

Closed as it's superseded by #366.