This package has the code to read in a file that is in the Open Street Map format (.osm files). OSM uses an XML format. The bulk of the code exists to map from the OSM format to the garmin types. In general we need to look at several tags to decide on the correct garmin feature type to use. The initial versions of mkgmap could only deal with cases where a single tag value was sufficient. This was simple and works for a large number of cases, but makes some things completely impossible. The new style system will remove this limitation.
Version 0.4 of the api is no longer supported.
This version of the format does away with segments. Ways are sequences of nodes. As such it matches the format that we require for the Garmin maps much closer than the previous version of the api. Ways cannot branch or have out of order segments, so all the code that deals with that is not required.
The following features of the OSM format need to be addressed to create the map.
With this style converter you can have several named styles which can be built into mkgmap. A style consists of a number of different files held in a directory. The different files mean that there is a lot more flexibility available.