GeoPoint3.parse constructor

GeoPoint3.parse(
  1. String text, {
  2. ParseCoords? parser,
})

A point parsed from text with coordinates in order: lon, lat, elev.

If parser is null, then WKT text like "10.0 20.0 30.0" is expected.

Throws FormatException if cannot parse.

Implementation

factory GeoPoint3.parse(String text, {ParseCoords? parser}) => parser != null
    ? GeoPoint3.from(parser.call(text))
    : parseWktPoint<GeoPoint3>(text, GeoPoint3.coordinates);