parsePoints returns the values in the input string as Points.
(s string)
| 82 | |
| 83 | // parsePoints returns the values in the input string as Points. |
| 84 | func 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. |
no test coverage detected
searching dependent graphs…