// MarshalJSON implements the encoding/json Marshaler interface. It will return
// the GeoJSON encoded representation of p.
MarshalJSON implements the encoding/json Marshaler interface. It will return
the GeoJSON encoded representation of p.
// MarshalJSON implements the encoding / json Marshaler interface . It will return // the GeoJSON encoded representation of p .
func (p SFPoint) MarshalJSON() ([]byte, error) {
	if p.IsNil() {
		return nil, fmt.Errorf("types.SFPoint: cannot unmarshal an uninitialized SFPoint")
	}
	return geojson.Marshal(&p.Point)
}
func ( p SFPoint ) MarshalJSON ( ) ( [ ] byte , error ) { if p . IsNil ( ) { return nil , fmt . Errorf ( " " ) } return geojson . Marshal ( & p . Point ) }
MarshalJSON implements the encoding/json Marshaler interface.
MarshalJSON implements the encoding / json Marshaler interface .