Skip to content

Commit

Permalink
docs: info about createJson param override
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 14, 2024
1 parent f2f92c3 commit 435a031
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions osm_rawdata/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def createJson(
allgeom (bool): Whether to return centroids or all the full geometry
TODO this is not implemented.
extra_params (dict): Extra parameters to include in JSON config root.
These params override existing values if set.
Returns:
str: The stringified JSON data.
Expand All @@ -189,6 +190,7 @@ def createJson(
"attributes": self._get_attributes(config),
**extra_params,
}

return json.dumps(json_data)

def _get_geometry_types(self, config: QueryConfig) -> Union[list, None]:
Expand Down

0 comments on commit 435a031

Please sign in to comment.