All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.graphhopper.jackson.GraphHopperModule Maven / Gradle / Ivy

package com.graphhopper.jackson;

import com.fasterxml.jackson.databind.module.SimpleModule;
import com.graphhopper.GHResponse;
import com.graphhopper.MultiException;
import com.graphhopper.PathWrapper;
import com.graphhopper.util.CmdArgs;
import com.graphhopper.util.InstructionList;
import com.graphhopper.util.details.PathDetail;
import com.graphhopper.util.shapes.BBox;
import com.graphhopper.util.shapes.GHPoint;

public class GraphHopperModule extends SimpleModule {

    public GraphHopperModule() {
        addDeserializer(GHResponse.class, new GHResponseDeserializer());
        addDeserializer(PathWrapper.class, new PathWrapperDeserializer());
        addDeserializer(BBox.class, new BBoxDeserializer());
        addSerializer(BBox.class, new BBoxSerializer());
        addDeserializer(GHPoint.class, new GHPointDeserializer());
        addSerializer(GHPoint.class, new GHPointSerializer());
        addDeserializer(PathDetail.class, new PathDetailDeserializer());
        addSerializer(PathDetail.class, new PathDetailSerializer());
        addSerializer(InstructionList.class, new InstructionListSerializer());
        addDeserializer(CmdArgs.class, new CmdArgsDeserializer());
        addSerializer(MultiException.class, new MultiExceptionSerializer());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy