Zoning¶
-
public class
Zoning
¶ For mapping Tempro zones to the nodes of the road network.
Author: Milan Lovric
Fields¶
Constructors¶
Zoning¶
-
public
Zoning
(URL zonesUrl, URL nodesUrl, RoadNetwork rn, Properties params)¶ Constructor for the zoning system.
Parameters: - zonesUrl – Url for the zones shapefile.
- nodesUrl – Url for the nodes shapefile.
- rn – Road network.
- paramas – Properties file with parameters.
Throws: - IOException – if any.
Methods¶
getAccessEgressFactor¶
-
public double
getAccessEgressFactor
()¶ Getter for access/egress scaling factor.
Returns: Access/egress scaling factor.
getLADToListOfContainedZones¶
getLADToName¶
getLadCodeToIDMap¶
getLadIDToCodeMap¶
getNodeToZoneMap¶
getTemproCodeToIDMap¶
getTemproIDToCodeMap¶
getZoneIDToLadID¶
-
public int[]
getZoneIDToLadID
()¶ Getter for Tempro zone ID to LAD zone ID mapping.
Returns: Tempro zone ID to LAD zone ID array.
getZoneIDToNearestNodeDistanceMap¶
-
public double[]
getZoneIDToNearestNodeDistanceMap
()¶ Getter for zone ID to nearest node distance mapping (in meters).
Returns: Zone to distance map.
getZoneIDToNearestNodeIDFromLADTopNodesMap¶
-
public int[]
getZoneIDToNearestNodeIDFromLADTopNodesMap
()¶ Getter for zone ID to nearest node ID among top LAD nodes mapping.
Returns: Zone to node map.
getZoneIDToNearestNodeIDMap¶
-
public int[]
getZoneIDToNearestNodeIDMap
()¶ Getter for Tempro zone ID to nearest node ID mapping.
Returns: Zone to node map.
getZoneToCentroid¶
getZoneToLADMap¶
getZoneToListOfContainedNodes¶
getZoneToMinMaxDimension¶
-
public double[][]
getZoneToMinMaxDimension
()¶ Getter for Tempro zone ID to min [0] and max [1] dimension of the zone bounding box (envelope) [in km].
Returns: Zone min and max dimension (width or height).
getZoneToNearestNodeDistanceMap¶
getZoneToNearestNodeIDFromLADTopNodesMap¶
getZoneToNearestNodeIDMap¶
getZoneToNodeDistanceMatrix¶
-
public double[][]
getZoneToNodeDistanceMatrix
()¶ Getter for Tempro zone to all nodes distance matrix [in metres].
Returns: Zone to node distance matrix.