gis-tools-ts - v0.6.0
    Preparing search index...

    Class Way

    Way Class

    Index

    Constructors

    Properties

    primitiveBlock: PrimitiveBlock

    the primitive block to access keys and values

    reader: OSMReader

    the OSM reader

    Methods

    • Checks if the way has a key-value pair (value optional)

      Parameters

      • key: string

        the key

      • Optionalval: string

        the value

      Returns boolean

      • true if the way has the key and value
    • Checks if the way is an area based on it's key-value pairs

      Returns boolean

      • true if the way is an area
    • Checks if the way is filterable or not

      Returns boolean

      • true if the way is filterable
    • Access the way's node IDs associated with this way

      Returns number[]

      • the way's nodes
    • Converts the way to an intermediate vector feature (way's nodes have not been parsed)

      Returns undefined | IntermediateWay

      • the way as an intermediate vector feature