Class OsmNode


public class OsmNode extends OsmElement
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
     
    final double
     

    Fields inherited from class org.oscim.core.osm.OsmElement

    id, tags
  • Constructor Summary

    Constructors
    Constructor
    Description
    OsmNode(double lat, double lon, org.oscim.core.TagSet tags, long id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.locationtech.jts.geom.Geometry
     
    returns the id, plus an one-letter prefix for the element type

    Methods inherited from class org.oscim.core.osm.OsmElement

    equals, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • lat

      public final double lat
    • lon

      public final double lon
  • Constructor Details

    • OsmNode

      public OsmNode(double lat, double lon, org.oscim.core.TagSet tags, long id)
  • Method Details

    • toString

      public String toString()
      Description copied from class: OsmElement
      returns the id, plus an one-letter prefix for the element type
      Overrides:
      toString in class OsmElement
    • toJts

      public org.locationtech.jts.geom.Geometry toJts()
      Specified by:
      toJts in class OsmElement