|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.general.MapDetails
public class MapDetails
The map features that we are going to map are collected here.
Constructor Summary | |
---|---|
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. |
void |
config(EnhancedProperties props)
|
Area |
getBounds()
Get the bounds of this map. |
java.util.List<MapLine> |
getLines()
Get all the lines for this map. |
java.util.List<Overview> |
getOverviews()
Get the overviews. |
java.util.List<MapPoint> |
getPoints()
Get the list of points that need to be rendered on the map. |
RoadNetwork |
getRoadNetwork()
Get the high level view of the road network. |
java.util.List<MapShape> |
getShapes()
Get the list of shapes that need to be rendered to the map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapDetails()
Method Detail |
---|
public void config(EnhancedProperties props)
public void addPoint(MapPoint point)
addPoint
in interface MapCollector
point
- Point to add.public void addLine(MapLine line)
addLine
in interface MapCollector
line
- The line information.public void addShape(MapShape shape)
addShape
in interface MapCollector
shape
- The polygon to add.public void addRoad(MapRoad road)
MapCollector
addRoad
in interface MapCollector
public void addRestriction(CoordNode fromNode, CoordNode toNode, CoordNode viaNode, byte exceptMask)
MapCollector
addRestriction
in interface MapCollector
exceptMask
- For exceptions eg. no-left-turn except for buses.public void addThroughRoute(long junctionNodeId, long roadIdA, long roadIdB)
MapCollector
addThroughRoute
in interface MapCollector
public void addToBounds(Coord p)
addToBounds
in interface MapCollector
p
- The coordinates of the point to add.public Area getBounds()
getBounds
in interface MapDataSource
public java.util.List<MapPoint> getPoints()
MapDataSource
getPoints
in interface MapDataSource
MapPoint
objects.public java.util.List<MapLine> getLines()
getLines
in interface MapDataSource
public java.util.List<MapShape> getShapes()
MapDataSource
getShapes
in interface MapDataSource
MapShape
objects.public RoadNetwork getRoadNetwork()
MapDataSource
getRoadNetwork
in interface MapDataSource
RoadNetwork
object with all the connections between
roads. If this returns null, then the NET and NOD sections should
not be written.public java.util.List<Overview> getOverviews()
getOverviews
in interface MapDataSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |