Uses of Interface
org.goplanit.utils.network.layer.macroscopic.MacroscopicLink
-
Packages that use MacroscopicLink Package Description org.goplanit.converter.zoning org.goplanit.geoio.converter.network.featurecontext org.goplanit.gtfs.converter.zoning.handler org.goplanit.gtfs.util org.goplanit.network.layer.macroscopic Macroscopic physical network component object classesorg.goplanit.osm.converter org.goplanit.osm.converter.network org.goplanit.osm.converter.zoning org.goplanit.osm.converter.zoning.handler.helper org.goplanit.osm.util org.goplanit.utils.network.layer.macroscopic org.goplanit.utils.zoning zoning oriented utility classes -
-
Uses of MacroscopicLink in org.goplanit.converter.zoning
Methods in org.goplanit.converter.zoning that return types with arguments of type MacroscopicLink Modifier and Type Method Description static Pair<MacroscopicLink,Boolean>
ZoningConverterUtils. excludeClosestLinksIncrementallyOnWrongSideOf(org.locationtech.jts.geom.Geometry location, Collection<MacroscopicLink> links, boolean isLeftHandDrive, Collection<? extends Mode> accessModes, PlanitJtsCrsUtils geoUtils)
Exclude the closest link if it is situated on the wrong side of the road, then if links are remaining keep going with removing the then closest if it is also on the wrong side of the road etc.static Collection<MacroscopicLink>
ZoningConverterUtils. excludeLinksOnWrongSideOf(org.locationtech.jts.geom.Geometry location, Collection<MacroscopicLink> links, boolean isLeftHandDrive, Collection<? extends Mode> accessModes, PlanitJtsCrsUtils geoUtils)
create a subset of links from the passed in ones, removing all links for which we can be certain that geometry is located on the wrong side of the road infrastructure geometry.Methods in org.goplanit.converter.zoning with parameters of type MacroscopicLink Modifier and Type Method Description static Collection<LinkSegment>
ZoningConverterUtils. findAccessEntryLinkSegmentsForWaitingArea(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Node node, Mode accessMode, String countryName, boolean mustAvoidCrossingTraffic, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, Function<Node,String> getOverwrittenWaitingAreaSourceId, PlanitJtsCrsUtils geoUtils)
Find the link segments that are accessible for the given access link, node, mode combination taking into account the relative location of the transfer zone if needed and mode compatibility.static Collection<? extends LinkSegment>
ZoningConverterUtils. findAccessLinkSegmentsForWaitingArea(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Mode accessMode, String countryName, boolean mustAvoidCrossingTraffic, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, Function<Node,String> getOverwrittenWaitingAreaSourceId, PlanitJtsCrsUtils geoUtils)
static org.locationtech.jts.geom.Point
ZoningConverterUtils. findConnectoidLocationForWaitingAreaOnLink(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Mode accessMode, double maxAllowedDistanceMeters, Function<Node,String> getOverwrittenWaitingAreaSourceIdForNode, Function<org.locationtech.jts.geom.Point,String> getOverwrittenWaitingAreaSourceIdForPoint, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
Deprecated.static boolean
ZoningConverterUtils. hasWaitingAreaPotentialAccessLinkSegmentForLinkNodeModeCombination(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Node accessNode, Mode accessMode, Function<Node,String> getOverwrittenWaitingAreaSourceId, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
Verify if any valid access link segments exist for the given combination of link, one of its extreme nodes, and the access mode, taking into account any explicit overwrites that may exist that are not bounded by any limitations on compatibility.Method parameters in org.goplanit.converter.zoning with type arguments of type MacroscopicLink Modifier and Type Method Description static Pair<MacroscopicLink,Boolean>
ZoningConverterUtils. excludeClosestLinksIncrementallyOnWrongSideOf(org.locationtech.jts.geom.Geometry location, Collection<MacroscopicLink> links, boolean isLeftHandDrive, Collection<? extends Mode> accessModes, PlanitJtsCrsUtils geoUtils)
Exclude the closest link if it is situated on the wrong side of the road, then if links are remaining keep going with removing the then closest if it is also on the wrong side of the road etc.static Collection<MacroscopicLink>
ZoningConverterUtils. excludeLinksOnWrongSideOf(org.locationtech.jts.geom.Geometry location, Collection<MacroscopicLink> links, boolean isLeftHandDrive, Collection<? extends Mode> accessModes, PlanitJtsCrsUtils geoUtils)
create a subset of links from the passed in ones, removing all links for which we can be certain that geometry is located on the wrong side of the road infrastructure geometry. -
Uses of MacroscopicLink in org.goplanit.geoio.converter.network.featurecontext
Constructor parameters in org.goplanit.geoio.converter.network.featurecontext with type arguments of type MacroscopicLink Constructor Description PlanitLinkFeatureTypeContext(Function<MacroscopicLink,String> linkIdMapper, Function<Node,String> nodeIdMapper)
Constructor -
Uses of MacroscopicLink in org.goplanit.gtfs.converter.zoning.handler
Methods in org.goplanit.gtfs.converter.zoning.handler with parameters of type MacroscopicLink Modifier and Type Method Description void
GtfsZoningHandlerData. addGeoIndexedLink(MacroscopicLink link)
Add provided link to local spatial index based on their bounding boxvoid
GtfsZoningHandlerData. addGeoIndexedLinks(MacroscopicLink... links)
Add provided link to local spatial index based on their bounding boxvoid
GtfsZoningHandlerData. removeGeoIndexedLink(MacroscopicLink link)
Remove link from local spatial index based on links -
Uses of MacroscopicLink in org.goplanit.gtfs.util
Methods in org.goplanit.gtfs.util that return types with arguments of type MacroscopicLink Modifier and Type Method Description static Collection<MacroscopicLink>
GtfsLinkHelper. findNearbyLinks(org.locationtech.jts.geom.Point location, double pointSearchRadiusMeters, GtfsZoningHandlerData data)
Find nearby links based on a given search radiusMethods in org.goplanit.gtfs.util with parameters of type MacroscopicLink Modifier and Type Method Description static void
GtfsLinkHelper. breakLinksAtPlanitNode(Node planitNode, MacroscopicNetworkLayer networkLayer, MacroscopicLink linkToBreak, Collection<GraphModifierListener> temporaryListeners, GtfsZoningHandlerData data)
break a PLANit link at the PLANit node location while also updating all related tracking indices and/or PLANit network link and link segment references that might be affected by this process: tracking of geo indexed PLANit links connectoid access link segments affected by breaking of link (if any)static Pair<Node,Boolean>
GtfsLinkHelper. extractNodeByLinkGeometryLocation(org.locationtech.jts.geom.Point gtfsStopNodeLocation, MacroscopicLink referenceLink, MacroscopicNetworkLayer networkLayer, GtfsZoningHandlerData data)
Extract/create a PLANit node based on the given location. -
Uses of MacroscopicLink in org.goplanit.network.layer.macroscopic
Classes in org.goplanit.network.layer.macroscopic that implement MacroscopicLink Modifier and Type Class Description class
MacroscopicLinkImpl<N extends DirectedVertex,LS extends MacroscopicLinkSegment>
Link class connecting two nodes via some geometry.Methods in org.goplanit.network.layer.macroscopic with parameters of type MacroscopicLink Modifier and Type Method Description MacroscopicLinkSegment
MacroscopicLinkSegmentFactoryImpl. create(MacroscopicLink parentLink, boolean directionAb)
Create macroscopic link segment, do not register nor register on nodes and linkPair<MacroscopicLinkSegment,MacroscopicLinkSegment>
MacroscopicLinkSegmentFactoryImpl. registerNew(MacroscopicLink parentLink, boolean registerOnLink)
Create macroscopic link segments in both directions and register themMacroscopicLinkSegment
MacroscopicLinkSegmentFactoryImpl. registerNew(MacroscopicLink parentLink, boolean directionAb, boolean registerOnLink)
Create a macroscopic link segment and register itMacroscopicLinkSegment
MacroscopicLinkSegmentFactoryImpl. registerNew(MacroscopicLink parentLink, MacroscopicLinkSegmentType type, boolean directionAb, boolean registerOnLink)
Create a macroscopic link segment and register itMethod parameters in org.goplanit.network.layer.macroscopic with type arguments of type MacroscopicLink Modifier and Type Method Description MacroscopicLinksImpl
MacroscopicLinksImpl. deepCloneWithMapping(BiConsumer<MacroscopicLink,MacroscopicLink> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperMacroscopicLinksImpl
MacroscopicLinksImpl. deepCloneWithMapping(BiConsumer<MacroscopicLink,MacroscopicLink> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperprotected void
MacroscopicLinkFactoryImpl. setGraphEntities(GraphEntities<MacroscopicLink> macroscopicLinks)
Use with caution as it replaces the managed id container in its entiretyConstructors in org.goplanit.network.layer.macroscopic with parameters of type MacroscopicLink Constructor Description MacroscopicLinkSegmentImpl(IdGroupingToken groupId, MacroscopicLink parentLink, boolean directionAB)
ConstructorConstructor parameters in org.goplanit.network.layer.macroscopic with type arguments of type MacroscopicLink Constructor Description MacroscopicLinkFactoryImpl(IdGroupingToken groupIdToken, GraphEntities<MacroscopicLink> macroscopicLinks)
ConstructorMacroscopicLinksImpl(MacroscopicLinksImpl other, boolean deepCopy, BiConsumer<MacroscopicLink,MacroscopicLink> mapper)
Copy constructor, also creates a new factory with reference to this containerMacroscopicLinksImpl(MacroscopicLinksImpl other, boolean deepCopy, BiConsumer<MacroscopicLink,MacroscopicLink> mapper)
Copy constructor, also creates a new factory with reference to this container -
Uses of MacroscopicLink in org.goplanit.osm.converter
Methods in org.goplanit.osm.converter that return types with arguments of type MacroscopicLink Modifier and Type Method Description Collection<MacroscopicLink>
OsmModeConversionBase. filterModeCompatibleLinks(Collection<String> referenceOsmModes, Collection<MacroscopicLink> potentialLinks, boolean allowPseudoModeMatches)
Find all links with at least one compatible mode (and PLANit mode mapped) based on the passed in reference OSM modes and potential links In case no eligible modes are provided (null), we allow any transfer zone with at least one valid mapped mode -
Uses of MacroscopicLink in org.goplanit.osm.converter.network
Fields in org.goplanit.osm.converter.network with type parameters of type MacroscopicLink Modifier and Type Field Description protected Map<org.locationtech.jts.geom.Point,Pair<List<MacroscopicLink>,de.topobyte.osm4j.core.model.iface.OsmNode>>
OsmNetworkReaderLayerData. originalLinkInternalAvailableLocations
Mapping from locations (representing known OSM nodes or auto-generated PLANit nodes without OSM node, in the latter case, no OSM node is stored in the pair) to the links they are internal to.protected Map<Long,Set<MacroscopicLink>>
OsmNetworkReaderLayerData. osmWaysWithMultiplePlanitLinks
track osmways with multiple planit links if they are created due to circular ways or breaking of links.Methods in org.goplanit.osm.converter.network that return MacroscopicLink Modifier and Type Method Description MacroscopicLink
OsmNetworkLayerParser. extractPartialOsmWay(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<String,String> tags, int startNodeIndex, int endNodeIndex, boolean isPartOfCircularWay, Pair<MacroscopicLinkSegmentType,MacroscopicLinkSegmentType> linkSegmentTypes)
extract OSM way's PLANit infrastructure for the part of the way that is indicated.Methods in org.goplanit.osm.converter.network that return types with arguments of type MacroscopicLink Modifier and Type Method Description protected Map<NetworkLayer,MacroscopicLink>
OsmNetworkMainProcessingHandler. extractPartialOsmWay(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<String,String> tags, int startNodeIndex, int endNodeIndex, boolean isPartOfCircularWay)
Extract OSM way's PLANit infrastructure for the part of the way that is indicated.List<MacroscopicLink>
OsmNetworkReaderLayerData. findPlanitLinksWithInternalLocation(org.locationtech.jts.geom.Point location)
We identify which current planit links have the given location registered as internal to themMethods in org.goplanit.osm.converter.network with parameters of type MacroscopicLink Modifier and Type Method Description void
OsmNetworkReaderLayerData. registerLocationAsInternalToPlanitLink(org.locationtech.jts.geom.Point location, MacroscopicLink planitLink)
add a mapping from location to the (initial) PLANit link it is internal tovoid
OsmNetworkReaderLayerData. registerOsmNodeAsInternalToPlanitLink(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, MacroscopicLink planitLink)
Add a mapping from OSM node id to the (initial) PLANit link it is internal tostatic void
OsmNetworkHandlerHelper. setLinkVerticalLayerIndex(MacroscopicLink link, Map<String,String> tags)
Set the OSM vertical layer index for the link based on its OSM tagsMethod parameters in org.goplanit.osm.converter.network with type arguments of type MacroscopicLink Modifier and Type Method Description static void
OsmNetworkHandlerHelper. addAllTo(Map<Long,Set<MacroscopicLink>> addition, Map<Long,Set<MacroscopicLink>> destination)
add addition to destinationvoid
OsmNetworkReaderLayerData. updateOsmWaysWithMultiplePlanitLinks(Long osmWayId, Set<MacroscopicLink> newOsmWayToPlanitLinkMapping)
update all known OSM ways with multiple PLANit links.void
OsmNetworkReaderLayerData. updateOsmWaysWithMultiplePlanitLinks(Map<Long,Set<MacroscopicLink>> newOsmWayToPlanitLinkMapping)
update all known OSM ways with multiple PLANit links. -
Uses of MacroscopicLink in org.goplanit.osm.converter.zoning
Methods in org.goplanit.osm.converter.zoning that return types with arguments of type MacroscopicLink Modifier and Type Method Description Collection<MacroscopicLink>
OsmZoningReaderPlanitData. findLinksSpatially(org.locationtech.jts.geom.Envelope searchBoundingBox)
Find links spatially based on the provided bounding boxMethod parameters in org.goplanit.osm.converter.zoning with type arguments of type MacroscopicLink Modifier and Type Method Description void
OsmZoningReaderPlanitData. addLinksToSpatialLinkIndex(Collection<MacroscopicLink> links)
Add provided links to local spatial index based on their bounding boxvoid
OsmZoningReaderPlanitData. removeLinksFromSpatialLinkIndex(Collection<MacroscopicLink> links)
Remove provided links from local spatial index based on links -
Uses of MacroscopicLink in org.goplanit.osm.converter.zoning.handler.helper
Methods in org.goplanit.osm.converter.zoning.handler.helper that return types with arguments of type MacroscopicLink Modifier and Type Method Description Collection<MacroscopicLink>
TransferZoneHelper. filterVerticalLayerCompatibleLinks(TransferZone transferZone, Collection<MacroscopicLink> linksToFilter, boolean assumeDefaultLayerForZoneIfAbsent)
Filter (retain) only the links that are vertical layer index compatible, i.e., have the same vertical layer index (or both adopt the default).Methods in org.goplanit.osm.converter.zoning.handler.helper with parameters of type MacroscopicLink Modifier and Type Method Description void
OsmConnectoidHelper. extractDirectedConnectoidsForStandAloneTransferZoneByPlanitLink(long osmWaitingAreaId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, TransferZone transferZone, PredefinedModeType planitAccessModeType, double maxAllowedStopToTransferZoneDistanceMeters, MacroscopicNetworkLayer networkLayer, boolean suppressLogging)
create connectoids not based on OSM node location but based on auto-generated geographic location on the provided link's link segments by finding either a close enough existing coordinate (OSM node), or if not close enough a newly created coordinate at the appropriate position.org.locationtech.jts.geom.Point
OsmConnectoidHelper. findConnectoidLocationForStandAloneTransferZoneOnLink(TransferZone transferZone, MacroscopicLink accessLink, PredefinedModeType planitModeType, double maxAllowedDistanceMeters)
find a suitable connectoid location on the given link based on the constraints that it must be able to reside on a link segment that is in the correct relative position to the transfer zone and supports the access mode on at least one of the designated link segment(s) that is eligible (if any).Method parameters in org.goplanit.osm.converter.zoning.handler.helper with type arguments of type MacroscopicLink Modifier and Type Method Description Collection<MacroscopicLink>
TransferZoneHelper. filterVerticalLayerCompatibleLinks(TransferZone transferZone, Collection<MacroscopicLink> linksToFilter, boolean assumeDefaultLayerForZoneIfAbsent)
Filter (retain) only the links that are vertical layer index compatible, i.e., have the same vertical layer index (or both adopt the default). -
Uses of MacroscopicLink in org.goplanit.osm.util
Methods in org.goplanit.osm.util that return MacroscopicLink Modifier and Type Method Description static MacroscopicLink
PlanitNetworkLayerUtils. createPopulateAndRegisterLink(Node nodeA, Node nodeB, org.locationtech.jts.geom.LineString geometry, MacroscopicNetworkLayer layer, String externalId, String name, PlanitJtsCrsUtils geoUtils)
Default way to create a link (and register it on its nodes) in OSMstatic MacroscopicLink
PlanitLinkOsmUtils. getClosestLinkWithOsmWayIdToGeometry(long osmWayId, org.locationtech.jts.geom.Geometry geometry, MacroscopicNetworkLayer networkLayer, PlanitJtsCrsUtils geoUtils)
Collect the closest by link (with the given OSM way id on the layer) to the provided geometry.Methods in org.goplanit.osm.util with parameters of type MacroscopicLink Modifier and Type Method Description static MacroscopicLinkSegment
PlanitNetworkLayerUtils. createPopulateAndRegisterLinkSegment(MacroscopicLink link, boolean directionAb, MacroscopicLinkSegmentType linkSegmentType, Double speedLimit, Integer numLanes, MacroscopicNetworkLayer networkLayer)
Default way to create a link segment (and register it ) in OSM -
Uses of MacroscopicLink in org.goplanit.utils.network.layer.macroscopic
Methods in org.goplanit.utils.network.layer.macroscopic that return MacroscopicLink Modifier and Type Method Description MacroscopicLink
MacroscopicLink. deepClone()
Deep copy, non-owned members are reference copieddefault MacroscopicLink
MacroscopicLinkSegment. getParentLink()
Return the parent link of this link segmentMacroscopicLink
MacroscopicLinkFactory. registerNew(Node nodeA, Node nodeB, double lengthKm, boolean registerOnNodes)
Create new macroscopic link on container, allow to be registered on nodes if indicated)MacroscopicLink
MacroscopicLink. shallowClone()
Shallow copyMethods in org.goplanit.utils.network.layer.macroscopic with parameters of type MacroscopicLink Modifier and Type Method Description MacroscopicLinkSegment
MacroscopicLinkSegmentFactory. create(MacroscopicLink parentLink, boolean directionAB)
Create macroscopic link segment, do not register nor register on nodes and linkPair<MacroscopicLinkSegment,MacroscopicLinkSegment>
MacroscopicLinkSegmentFactory. registerNew(MacroscopicLink parentLink, boolean registerOnLink)
Create macroscopic link segments in both directions and register themMacroscopicLinkSegment
MacroscopicLinkSegmentFactory. registerNew(MacroscopicLink parentLink, boolean directionAb, boolean registerOnLink)
Create a macroscopic link segment and register itMacroscopicLinkSegment
MacroscopicLinkSegmentFactory. registerNew(MacroscopicLink parentLink, MacroscopicLinkSegmentType type, boolean directionAb, boolean registerOnLink)
Create a macroscopic link segment and register itMethod parameters in org.goplanit.utils.network.layer.macroscopic with type arguments of type MacroscopicLink Modifier and Type Method Description MacroscopicLinks
MacroscopicLinks. deepCloneWithMapping(BiConsumer<MacroscopicLink,MacroscopicLink> mapper)
Deep clone implementation with mapping retained between original and copies createdMacroscopicLinks
MacroscopicLinks. deepCloneWithMapping(BiConsumer<MacroscopicLink,MacroscopicLink> mapper)
Deep clone implementation with mapping retained between original and copies created -
Uses of MacroscopicLink in org.goplanit.utils.zoning
Method parameters in org.goplanit.utils.zoning with type arguments of type MacroscopicLink Modifier and Type Method Description static Map<org.locationtech.jts.geom.Point,DirectedConnectoid>
ConnectoidUtils. findDirectedConnectoidsReferencingLinks(Collection<MacroscopicLink> links, Map<org.locationtech.jts.geom.Point,List<DirectedConnectoid>> connectoidsByLocation)
Collect all connectoids and their access node's positions if their access link segments reside on the provided links.
-