Package com.geodesk.feature
Interface Way
A
Feature
that represents a linestring, linear ring, or a simple
polygon.-
Method Summary
Methods inherited from interface com.geodesk.feature.Feature
area, belongsTo, belongsToRelation, booleanValue, bounds, hasTag, hasTag, id, intValue, isArea, lat, length, lon, parentRelations, role, stringValue, tag, tags, toGeometry, type, x, y
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
toXY
int[] toXY()Returns the way's coordinates as an array of integers. X coordinates are stored at even index positions, Y at odd.- Returns:
- an array of coordinate pairs
-
nodes
Returns the way's nodes.- Returns:
- an ordered collection of
Node
objects
-
nodes
Returns the way's nodes that match the given query.- Parameters:
q
- a query in GOQL format- Returns:
- a collection of member nodes that match the given query (may be empty)
-