openbikesensor / portal

OpenBikeSensor data collection portal
GNU Lesser General Public License v3.0
36 stars 17 forks source link

Road direction mixed up? #360

Closed Nugman closed 3 months ago

Nugman commented 9 months ago

It seems, like the direction of the road is mixed up between the map and the statistics table.

See: https://obs.adfc-hessen.de/map#21.70/50.13958253608688/8.37322566774414 When I select "Richtung Westen", the southern part of the road is highlighted, which leads actually to the east, because we drive on the right hand side. image

When I select "Richtung Osten", the northern side of the road is selected: image

Is this a bug or just a misunderstanding on my side?

gluap commented 9 months ago

@Nugman This looks indeed like a bug. I also checked the map but I don't think the segment shape is to blame. (was thinking that the segment was maybe s-shaped making it hard to decide between "west" and "east"-bound.

I think we might be confusing east and west: image

Note that this does suggests northeastern direction while the actual road is in northwestern/southesatern direction.

Plausibility-checking on uphill/downhill roads shows (where the cyclist speed makes it clear what direction he was driving on the road - downhill: fast, uphill: slow) the rendering on the map seems correct, the problem is in the labeling in the UI.

Nugman commented 8 months ago

@gluap hm, ok now I'm confused. ;-) Does it mean just the labels are wrong, so East is West and vice versa? Which numbers are shown in the statics? The ones that are on the blue-ish highlighted side of the road?

gluap commented 8 months ago

Yes, only "osten" / "westen" are the wrong way round. The statistics match the side of the road indicated by the blue line on the map as far as i could tell.

opatut commented 3 months ago

This is fixed in next and will be in 0.9.0.