code: def as_json(options = {})
        cs = self.coord_seq
        if self.has_z?
          { :type => 'point', :lat => cs.get_y(0), :lng => cs.get_x(0), :z => cs.get_z(0) }
        else
          { :type => 'point', :lat => cs.get_y(0), :lng => cs.get_x(0) }
        end
      end
docs: Returns a Hash suitable for converting to JSON.