Export Data

gideon_api.to_geojson(df, filename, return_geodataframe=True)
Exports a dataframe containing latitude and longitude data to a GeoJSON

file to be used in other programs.

Parameters
  • df (DataFrame) – The dataframe with the columns “latitude” and “longitude”

  • filename (str) – the name of the GeoJSON file saved the computer. The save location is relative to the current working directory.

  • return_geodataframe (bool) – Indicates if the underlying GeoDataFrame should be returned as a Python object, in addition to the expored GeoJSON file.

Return type

Optional[GeoDataFrame]

Returns

Optionally returns the GeoDataFrame of the input dataframe.