org.opentripplanner.common.geometry.GeoJsonModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.common.geometry;
import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.module.SimpleModule;
import org.locationtech.jts.geom.Geometry;
public class GeoJsonModule extends SimpleModule {
public GeoJsonModule() {
super("GeoJson", new Version(1, 0, 0, null, "com.bedatadriven", "jackson-geojson"));
addSerializer(Geometry.class, new GeometrySerializer());
addDeserializer(Geometry.class, new GeometryDeserializer());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy