Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make GeoJSON type opaque and provide constructor functions #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Guria
Copy link
Owner

@Guria Guria commented Oct 5, 2024

Non opaque GeoJSON may lead to build incorrect geojson. Eg, Feature that contains non Geometry types.

BREAKING CHANGE: GeoJSON type is now opaque. Use new constructor functions (new_point, new_feature, etc.) to create GeoJSON objects instead of direct construction. This ensures type safety and prevents creation of invalid GeoJSON structures.

Non opaque GeoJSON may lead to build incorrect geojson. Eg, Feature that contains non Geometry types.

BREAKING CHANGE: GeoJSON type is now opaque. Use new constructor functions (new_point, new_feature, etc.) to create GeoJSON objects instead of direct construction. This ensures type safety and prevents creation of invalid GeoJSON structures.

Signed-off-by: Aleksei Gurianov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant