Interface Way

All Superinterfaces:
Feature, Iterable<Node>

public interface Way extends Feature, Iterable<Node>
A Feature that represents a linestring, linear ring, or a simple polygon.
  • 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

      Features<Node> nodes()
      Returns the way's nodes.
      Returns:
      an ordered collection of Node objects
    • nodes

      Features<Node> nodes(String q)
      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)