logo separator

[mkgmap-dev] Public transport

From Adrian ar2988-os at yahoo.co.uk on Mon Apr 7 23:20:54 BST 2014

I have entered some public transport data into OSM. I have made every 
effort to enter the data in accordance with the new public transport 
schema. Some 'old' tags are also present because I started mapping the 
data before the new schema was approved. For testing purposes I used the 
extract from Geofabrik of the Languedoc-Roussillon region of France. I 
used r3160 with the default style and these options: --max-jobs 
--code-page=1252 --add-pois-to-areas --route --link-pois-to-ways 
--precomp-sea=sea_20140324.zip --generate-sea --index 
--bounds=bounds_20140324.zip --location-autofill:bounds,is_in,nearest 
--housenumbers. Looking at the results, I noticed a number of things.

(1) Names of railway stations

The names of many railway stations appear in the form SNCF: Agde.
https://www.openstreetmap.org/way/72614628
This is the result of generic processing of names in the style file 
inc/name. There are about 3500 railway stations in France and more than 
half of them are tagged operator=SNCF. I would prefer to see the name in 
the form Agde SNCF, which was produced by earlier versions of the 
default style, before the file inc/name was introduced. This is more 
convenient for searching on a device.

(2) Names of bus stops

This is an example of the name of a bus stop as it appears in the 
generated map: Agglo Hérault Méditerranée: (1;2;3;4;5,4,4,3,3)+ Gare SNCF
https://www.openstreetmap.org/node/1424432523
The Garmin software and the device will only display the first part of 
the string. I used QLandkarte GT to see the complete string. (For 
legibility, I have used lower case in the strings, although they are in 
upper case in the generated map.)

Earlier versions of the default style produced the result Gare SNCF 
(1;2;3;4;5,4,4,3,3)+Agglo Hérault Méditerranée, which I prefer. "Gare 
SNCF" is the name of the bus stop. The earlier version would be 
essential, to allow you to see the name of the bus stop on a device. 
What do others think?

The solution which I use for my own maps, is as follows. Before line 5 
of file inc/name (ref=* & (operator!=* & brand!=*) { name '${ref} 
${name}' | '${ref}' }), insert this line
ref=* & (operator!=* & brand!=*) & (highway=bus_stop | railway=tram_stop 
| railway=halt | railway=station) { name '${name} ${ref}' | '${ref}' }
Before line 16 of file inc/name (operator=* & brand!=* {), insert these 
6 lines
operator=* & brand!=* & (highway=bus_stop | railway=tram_stop | 
railway=halt | railway=station) {
  name '${name} ${ref} ${operator}' |
       '${name} ${operator}' |
       '${ref} ${operator}' |
       '${operator}'
}

I will leave further questions about public transport for another thread.



More information about the mkgmap-dev mailing list