Cast JSON object according to GeoJSON or TopoJSON spec

types.castGeojson(format, value)

Arguments

format

default is a geojson object as per the GeoJSON spec or topojson object as per the TopoJSON spec

value

GeoJSON to cast

See also