code: def _geom_points(geom):
      
      if geom['type'] == 'Point':
          yield tuple(geom['coordinates'])
      elif geom['type'] in ('MultiPoint', 'LineString'):
          for position in geom['coordinates']:
              yield tuple(position)
      else:
          raise InvalidFeatureError(
              "Unsupported geometry type:{0}".format(geom['type']))
docs: GeoJSON geometry to a sequence of point tuples