function geometry(type, coordinates, _options) {
    if (_options === void 0) { _options = {}; }
    switch (type) {
        case "Point":
            return point(coordinates).geometry;
        case "LineString":
            return lineString(coordinates).geometry;
        case "Polygon":
            return polygon(coordinates).geometry;
        case "MultiPoint":
            return multiPoint(coordinates).geometry;
        case "MultiLineString":
            return multiLineString(coordinates).geometry;
        case "MultiPolygon":
            return multiPolygon(coordinates).geometry;
        default:
            throw new Error(type + " is invalid");
    }
}
Creates a GeoJSON {@link Geometry} from a Geometry string type & coordinates.
For GeometryCollection type use `helpers.geometryCollection`

@name geometry
@param {string} type Geometry Type
@param {Array<any>} coordinates Coordinates
@param {Object} [options={}] Optional Parameters
@returns {Geometry} a GeoJSON Geometry
@example
var type = "Point";
var coordinates = [110, 50];
var geometry = turf.geometry(type, coordinates);
// => geometry