logo separator

[mkgmap-dev] Translating route=bus relations

From Marko Mäkelä marko.makela at iki.fi on Sat Jan 2 21:36:28 GMT 2010

On Sat, Jan 02, 2010 at 10:17:23PM +0200, Marko Mäkelä wrote:
> For what it is worth, here is what I tested so far.  It results in a 1 MB
> gmapsupp.img in 1 tile, while the "normal" Finland is over 40MB in 3 tiles.
> Some local bus and train routes have been mapped, but no long-distance
> services.

TO DO 1: filter duplicates. There can legitimately be duplicate way members
in route relations, because routes are best drawn as round-trip loops, if you
consider roundabouts (highway routes) or switch points (railways).  For
rail routes, if there are multiple departure and arrival tracks on the end
stations, the most logical option would seem to include each set of tracks
in one roundtrip, something like this:

A1-...-B1-...-A2-...-B2-...-A3-...-B1-...A1

(notation: A,B=stations, A{1,2,3}, B{1,2} are tracks on the stations)

This would of course mean a lot of duplicates (e.g., T,T,T,T,T on the railway
line if the route=train carries ref=T).  I think that this can best be solved
with a filter in the name rule.

TO DO 2: add a 'points' file that appends the route names to
the names of bus/train/tram/subway stops, to translate role=*stop members.

Best regards,

	Marko



More information about the mkgmap-dev mailing list