Opened 10 years ago

Closed 8 years ago

#402 closed enhancement/feature request (fixed)

maptool: use highway_city for trunks

Reported by: niccolo Owned by: KaZeR
Priority: major Milestone:
Component: core Version: git master
Severity: Keywords:
Cc:

Description

The current version of osm2navit maps highway=trunk (OSM classification) to street_4_city (Navit classification).

This causes OpenStreetMap trunks to be the same as primary roads in Navit.

I suggest to use the following mapping instead:

highway=motorway   highway_land
highway=trunk      highway_city

In this way we can use a style to differentiate them.

Using the current default style, the proposed patch will display trunks as motorways, a better choice in my opinion.

Attachments (3)

osm2navit-trunk-style.patch (841 bytes) - added by niccolo 10 years ago.
osm.c.diff (861 bytes) - added by korrosa 9 years ago.
osm.c.2.diff (943 bytes) - added by korrosa 9 years ago.

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by niccolo

comment:1 Changed 10 years ago by niccolo

  • Summary changed from osm2navit: use highway_land for trunks to osm2navit: use highway_city for trunks

comment:2 Changed 10 years ago by niccolo

I annotated the proposed change in this wikipage too.

comment:3 Changed 9 years ago by korrosa

I agree with this ticket, and have implemented it in my own copy. Patch attached for osm.c against svn r3838.

This also requires changing the layouts in Navit.xml slightly so that trunk roads show up differently to motorways. I've uploaded the changes to my OSM layout to the wiki: http://wiki.navit-project.org/index.php/Layout/mapnik

Changed 9 years ago by korrosa

comment:4 Changed 9 years ago by korrosa

  • Summary changed from osm2navit: use highway_city for trunks to maptool: use highway_city for trunks

Changed 9 years ago by korrosa

comment:5 Changed 8 years ago by korrosa

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

Since r4567 (http://navit.svn.sourceforge.net/navit/?rev=4567&view=rev) Navit now uses street_n_lanes for highway=trunk.

Note: See TracTickets for help on using tickets.