Skip to content

Add Jackson Module for GeoJSON types [DATAMONGO-1181] #2100

Closed
@spring-projects-issues

Description

@spring-projects-issues

Christoph Strobl opened DATAMONGO-1181 and commented

	static class GeoJsonModule extends GeoModule {

		private static final long serialVersionUID = 6239912797617786302L;

		public GeoJsonModule() {
			super();

			setMixInAnnotation(GeoJsonPoint.class, GeoJsonPointMixin.class);
		}
	}

	static abstract class GeoJsonPointMixin {
		GeoJsonPointMixin(@JsonProperty("longitude") double x, @JsonProperty("latitude") double y) {}
	}

Affects: 1.7 RC1 (Fowler)

Referenced from: pull request #283, and commits 01533ca, a1f6dc6, f170758, 857eb67

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions