|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
.
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 |
---|
void addToBounds(Coord p)
p
- The coordinates of the point to add. The type here
will change to Node.void addPoint(MapPoint point)
point
- The point to add.void addLine(MapLine line)
line
- The line information.void addShape(MapShape shape)
shape
- The polygon to add.void addRoad(MapRoad road)
void addRestriction(CoordNode fromNode, CoordNode toNode, CoordNode viaNode, byte exceptMask)
exceptMask
- For exceptions eg. no-left-turn except for buses.void addThroughRoute(long junctionNodeId, long roadIdA, long roadIdB)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |