public class RestrictionConverter extends Object
Constructor and Description |
---|
RestrictionConverter() |
Modifier and Type | Method and Description |
---|---|
static void |
checkIfCompatibleWithRestriction(GraphRestriction g,
String restriction) |
static Triple<ReaderRelation,GraphRestriction,RestrictionMembers> |
convert(ReaderRelation relation,
BaseGraph baseGraph,
LongFunction<Iterator<com.carrotsearch.hppc.cursors.IntCursor>> edgesByWay)
OSM restriction relations specify turn restrictions between OSM ways (of course).
|
static RestrictionMembers |
extractMembers(ReaderRelation relation) |
static long[] |
getRestrictedWayIds(ReaderRelation relation) |
static long |
getViaNodeIfViaNodeRestriction(ReaderRelation relation) |
static boolean |
isTurnRestriction(ReaderRelation relation) |
public static boolean isTurnRestriction(ReaderRelation relation)
public static long[] getRestrictedWayIds(ReaderRelation relation)
public static long getViaNodeIfViaNodeRestriction(ReaderRelation relation)
public static Triple<ReaderRelation,GraphRestriction,RestrictionMembers> convert(ReaderRelation relation, BaseGraph baseGraph, LongFunction<Iterator<com.carrotsearch.hppc.cursors.IntCursor>> edgesByWay) throws OSMRestrictionException
OSMRestrictionException
- if the given relation is either not valid in some way and/or cannot be handled and
shall be ignoredpublic static void checkIfCompatibleWithRestriction(GraphRestriction g, String restriction) throws OSMRestrictionException
OSMRestrictionException
public static RestrictionMembers extractMembers(ReaderRelation relation) throws OSMRestrictionException
OSMRestrictionException
Copyright © 2012–2022. All rights reserved.