uk.me.parabola.mkgmap.general
Interface MapCollector

All Known Subinterfaces:
OverviewMap
All Known Implementing Classes:
MapDetails, OverviewMapDataSource

public interface MapCollector

This interface can be used by map sources to collect the map elements in their general form. The general form has garmin types, but the full detail from the input file. It consists of all the 'writable' methods on MapDetails.

Author:
Steve Ratcliffe

Method Summary
 void addLine(MapLine line)
          Add a line to the map.
 void addPoint(MapPoint point)
          Add a point to the map.
 void addRestriction(CoordNode fromNode, CoordNode toNode, CoordNode viaNode, byte exceptMask)
          Add a routing restriction to the map.
 void addRoad(MapRoad road)
          For adding a road.
 void addShape(MapShape shape)
          Add the given shape (polygon) to the map.
 void addThroughRoute(long junctionNodeId, long roadIdA, long roadIdB)
          Add a through route to the map.
 void addToBounds(Coord p)
          Add the given point to the total bounds for the map.
 

Method Detail

addToBounds

void addToBounds(Coord p)
Add the given point to the total bounds for the map.

Parameters:
p - The coordinates of the point to add. The type here will change to Node.

addPoint

void addPoint(MapPoint point)
Add a point to the map.

Parameters:
point - The point to add.

addLine

void addLine(MapLine line)
Add a line to the map.

Parameters:
line - The line information.

addShape

void addShape(MapShape shape)
Add the given shape (polygon) to the map. A shape is very similar to a line but they are separate because they need to be put in different sections in the output map.

Parameters:
shape - The polygon to add.

addRoad

void addRoad(MapRoad road)
For adding a road. Although a road is a kind of line, it is treated differently so that we can join up roads that are split into several segments and to do routing etc.


addRestriction

void addRestriction(CoordNode fromNode,
                    CoordNode toNode,
                    CoordNode viaNode,
                    byte exceptMask)
Add a routing restriction to the map. This is something such as no left turn.

Parameters:
exceptMask - For exceptions eg. no-left-turn except for buses.

addThroughRoute

void addThroughRoute(long junctionNodeId,
                     long roadIdA,
                     long roadIdB)
Add a through route to the map.