Opened 10 years ago

Last modified 5 months ago

#519 reopened enhancement/feature request

Enable conditionals inside OSD text label (to show either road name or road ref)

Reported by: flabrosse Owned by: kazer
Priority: minor Milestone: version 0.6.0
Component: core Version: git master
Severity: Keywords:
Cc: flabrosse, nick@…

Description

Hi,

I've recently used navit for a long-ish trip in the UK and I was very pleased with it. I did find a problem, for which I haven't seen an answer to yet. Sometimes, street names are mentioned on the UI (internal): the street i'm on and the street I'm supposed to be on. This is great! However, this doesn't work on roads where there is no info whatsoever.

I guess this is because these roads don't have a name. Maybe if there is no name, then the "ref" tag should be used? This is info that is very useful when driving because often, especially on complicated intersections like on the motorway, it is very difficult to know which is the one you should be taking. However, road numbers are often the signs along with the destinations.

I don't think this is a UI issue, but maybe I'm wrong (is there a way to make the UI say that?).

Cheers,

Fred

Change History (12)

comment:1 Changed 10 years ago by flabrosse

  • Cc flabrosse added

comment:2 Changed 10 years ago by flabrosse

During the weekend I stumbled on one of these roads that have a name (B4543 in the UK) and was very please to see that the UI does display the road number and the turning onto it was displayed correctly. However, most roads don't have names and so using the ref tag (which all seem to have) when there is no name is probably the best thing to do.

comment:3 Changed 9 years ago by kazer

  • Milestone set to version 0.2.0
  • Owner changed from KaZeR to kazer
  • Status changed from new to assigned

comment:4 follow-up: Changed 9 years ago by korrosa

  • Resolution set to fixed
  • Status changed from assigned to closed

The OSM "ref" tag is parsed by maptool, an can be shown in Navit using the "text" OSD item and label="tracking.item.street_name_systematic". See http://wiki.navit-project.org/index.php/On_Screen_Display#text for more info.

comment:5 in reply to: ↑ 4 Changed 9 years ago by flabrosse

Replying to https://wiki.navit-project.org/index.php/user:korrosa:

The OSM "ref" tag is parsed by maptool, an can be shown in Navit using the "text" OSD item and label="tracking.item.street_name_systematic". See http://wiki.navit-project.org/index.php/On_Screen_Display#text for more info.

Although this does help (thanks), this is not quite what I meant, which was that is the name tag is empty, then the ref tag should be used. street_name_systematic seems to only be the number/reference (although the doc says "name" for one of them). The reason is that in towns is makes sense to have the street name while out of town the number is what makes sense.

comment:6 Changed 9 years ago by korrosa

  • Priority changed from major to minor
  • Resolution fixed deleted
  • Status changed from closed to reopened

Thanks for replying flabrosse and clarifying the ticket.

I personally have it setup so that both the street name (tracking.item.street_name) and street number "ref" (tracking.item.street_name_systematic) are shown in one label, as so (for the upcoming maneouvre):

<osd enabled="yes" type="text" label="${navigation.item[1].street_name} ${navigation.item[1].street_name_systematic}" ... />

or so (for tracking the current street)

<osd enabled="yes" type="text" label="${tracking.item.street_name} ${tracking.item.street_name_systematic}"

This means that if both the name and number are available, it will show both. If the name is not available, but the number is, it will show the number. If the name is available, but the number isn't, then only the name is shown. If neither are available, nothing is shown.

But, from your description I see you want to do something like (in poor pseudo-code):

if(name_is_available=true){ show: name}
elseif(name_is_available=false AND ref_is_available=true){ show: ref}

i.e. ONLY show the ref if the name is not available. I wouldn't be surprised if this isn't already available using one of the conditional statements, or something similar, but I haven't looked into it. Your ticket is valid though, so I'm re-opening it, but setting to minor priority.

comment:7 Changed 9 years ago by flabrosse

Yes, this is exactly what I meant.

Of course showing both (as you do) is a possibility, but on some devices where screen real estate is a problem, then not really an option.

Thanks for re-opening.

comment:8 Changed 8 years ago by number6

  • Cc nick@… added

comment:9 Changed 8 years ago by korrosa

  • Summary changed from Road names on UI (internal) to Enable conditionals inside OSD text label (to show either road name or road ref)

comment:10 Changed 6 years ago by usul

AFAIK there is currently no way to realise such behaviour. Is this still a problem?

comment:11 Changed 6 years ago by fred labrosse

I initially started that. Since, because I do have enough space on my screen to display both road number and name this is what I do. So as such I don't need the feature any more. But it might be useful to someone.

comment:12 Changed 5 months ago by http://wiki.navit-project.org/index.php/user:jkoan

  • Milestone changed from version 0.5.1 to version 0.6.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.