Web search: routes without length, uphill and downhill, wrong length in the route card

Open
#2,260 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active

Research direction

The issue identifies server search results and the web route row and card as the areas to change, but names no files or tests. Start by tracing how route search results are assembled on the server and consumed by the web map, then compare the route details shown in the Android example. Done means search rows show route length, uphill and downhill before the place, and route cards show lengths in km.

Written by the indexing model from the issue text.

Description

Problem

Found in osmandapp/OsmAnd#25940 (W-TC-01…03): search "Tatranska magistrala" on https://test.osmand.net/map/#12/49.0830/19.6120.

  1. The route row shows no route length, uphill and downhill, only the distance from the map center: web Foot · Východná · 21.8 km, Android shows a line with the length, uphill and downhill icons before the place: ⇆ 50.2 km ↑ 2.46 km ↓ 2.91 km · Východná.

    Image
  2. The route card shows the length as metres: the 50.2 km route shows 0.1 km, the 22.2 km route shows 0 km.

Fix

  • Server: send uphill and downhill of routes with the search results.
  • Web: show length, uphill and downhill in the route row as on Android: a line with the length, uphill and downhill icons before the place.
  • Web: show the route length in the card in km.
Dominant language
MDX
Stars
63
Forks
431
Avg merge
17h 10m
Merged PRs (30d)
124

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from osmandapp/web

All issues in osmandapp/web

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.