Coordinate

com.phasmidsoftware.xmldoc.kml.Coordinate
See theCoordinate companion class
object Coordinate

Companion object for the Coordinate case class, providing methods to parse and render Coordinate objects.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Coordinate.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(w: String): Coordinate

Parses a coordinate string and converts it into a Coordinate instance, if the string matches the expected format.

Parses a coordinate string and converts it into a Coordinate instance, if the string matches the expected format.

Value parameters

w

the input string representing a coordinate in the format "longitude,latitude,altitude" or "longitude,latitude" (altitude is optional, per the KML spec).

Attributes

Returns

a Coordinate instance created from the parsed string.

Throws
KmlException

if the input string does not match the expected coordinate format.

Implicits

Implicits

implicit val renderer: Renderer[Coordinate]
implicit val rendererSeq: Renderer[Seq[Coordinate]]