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.
      an array of coordinate pairs
    • nodes

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

      Features<Node> nodes(String q)
      Returns the way's nodes that match the given query.
      q - a query in GOQL format
      a collection of member nodes that match the given query (may be empty)