GeoDataFrame.
to_json
Returns a GeoJSON representation of the GeoDataFrame as a string.
GeoDataFrame
Indicates how to output missing (NaN) values in the GeoDataFrame. See below.
Include bbox (bounds) in the geojson
Notes
The remaining kwargs are passed to json.dumps().
Missing (NaN) values in the GeoDataFrame can be represented as follows:
null: output the missing entries as JSON null.
null
drop: remove the property from the feature. This applies to each feature individually so that features may have different properties.
drop
keep: output the missing entries as NaN.
keep