MCPcopy
hub / github.com/golang/geo / parsePoints

Function parsePoints

s2/textformat_test.go:84–94  ·  view source on GitHub ↗

parsePoints returns the values in the input string as Points.

(s string)

Source from the content-addressed store, hash-verified

82
83// parsePoints returns the values in the input string as Points.
84func parsePoints(s string) []Point {
85 lls := parseLatLngs(s)
86 if len(lls) == 0 {
87 return nil
88 }
89 points := make([]Point, len(lls))
90 for i, ll := range lls {
91 points[i] = PointFromLatLng(ll)
92 }
93 return points
94}
95
96// pointsToString returns a string representation suitable for reconstruction
97// by the parsePoints method.

Calls 2

parseLatLngsFunction · 0.85
PointFromLatLngFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…