code: func (p *Path) ToGeoJSON() *geojson.Feature {
  	coords := make([][]float64, 0, len(p.PointSet))
  
  	for _, p := range p.PointSet {
  		coords = append(coords, []float64{p[0], p[1]})
  	}
  
  	return geojson.NewLineStringFeature(coords)
  }
docs: // ToGeoJSON creates a new geojson feature with a linestring geometry
  // containing all the points.