uk.me.parabola.mkgmap.general
Class MapRoad
java.lang.Object
uk.me.parabola.mkgmap.general.MapElement
uk.me.parabola.mkgmap.general.MapLine
uk.me.parabola.mkgmap.general.MapRoad
public class MapRoad
- extends MapLine
Used to represent a road. A road is a special kind of line in that
it can be used to route down and can have addresses etc.
A road has several coordinates, and some of those coordinates can be
routing nodes.
A lot of the information is kept in a RoadDef
this is done
because it needs to be shared between all sections and all levels
of the same road.
- Author:
- Steve Ratcliffe
Methods inherited from class uk.me.parabola.mkgmap.general.MapElement |
getCity, getCountry, getExtTypeAttributes, getHouseNumber, getIsIn, getMaxResolution, getMinResolution, getName, getPhone, getRef, getRegion, getStreet, getType, getZip, hasExtendedType, isSimilar, setCity, setCountry, setExtTypeAttributes, setHouseNumber, setIsIn, setMaxResolution, setMinResolution, setName, setPhone, setRef, setRegion, setStreet, setType, setZip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapRoad
public MapRoad(long id,
MapLine line)
copy
public MapRoad copy()
- Description copied from class:
MapElement
- Provide a copy of this MapElement without geometry. This is used
when filtering and clipping to create modified versions.
- Overrides:
copy
in class MapLine
- Returns:
- the copy;
isRoad
public boolean isRoad()
- Overrides:
isRoad
in class MapLine
setRoadClass
public void setRoadClass(int roadClass)
setSpeed
public void setSpeed(int speed)
setOneway
public void setOneway()
setToll
public void setToll()
paved
public void paved(boolean p)
ferry
public void ferry(boolean f)
setSynthesised
public void setSynthesised(boolean s)
setAccess
public void setAccess(boolean[] access)
setNoThroughRouting
public void setNoThroughRouting()
setStartsWithNode
public void setStartsWithNode(boolean s)
setInternalNodes
public void setInternalNodes(boolean s)
setNumNodes
public void setNumNodes(int n)
getRoadDef
public RoadDef getRoadDef()
setRoadCity
public void setRoadCity(City c)
setRoadZip
public void setRoadZip(Zip z)
setRoundabout
public void setRoundabout(boolean r)
doFlareCheck
public void doFlareCheck(boolean fc)
doDeadEndCheck
public void doDeadEndCheck(boolean dec)
setLinkRoad
public void setLinkRoad(boolean lr)