buskerudbyen / cycling-norway

3 stars 2 forks source link

Add distance information #3

Closed leonardehrenfried closed 1 year ago

leonardehrenfried commented 1 year ago

Give some basic information on how long a selected route is and elevation.

leonardehrenfried commented 1 year ago

@beck-berry Maybe we could introduce a panel on the left hand side which contains the from/to and the routing result.

leonardehrenfried commented 1 year ago

Image

Beck-berry commented 1 year ago

This is how it currently looks:

Image

It is closable with the toggle button of the search fields, and it is not visible when there are no routes planned.

@tsobuskerudbyen What time template would you prefer? What other information should we add?

@leonardehrenfried I found the duration and the distance properties of the tripPatterns object, but it seems to me that it does not have proper info about the elevation. Do you have any suggestions, where could I find it?

I'd be happy with any other suggestions too.

leonardehrenfried commented 1 year ago

@Beck-berry I will try to get this information for you from the GraphQL API.

leonardehrenfried commented 1 year ago

Actually I just checked: the elevation information is not available in the API even though Entur's OTP instance has it.

I will have to speak to their developers if they are interested in adding it.

leonardehrenfried commented 1 year ago

For reference, here is their GraphiQL deployment: https://tinyurl.com/2ye84vea

tsobuskerudbyen commented 1 year ago

This looks good. Nice and stylish. :) Would love to have some elevation information as well.

Beck-berry commented 1 year ago

Should I create a PR for this and a new issue for the elevation, what do you think? That way the missing information doesn't stop the other two from being visible.

leonardehrenfried commented 1 year ago

Yes please