Search in sources :

Example 6 with GHJsonFactory

use of com.graphhopper.json.GHJsonFactory in project graphhopper by graphhopper.

the class ChangeGraphHelperTest method setUp.

@Before
public void setUp() {
    encodingManager = new EncodingManager("car");
    graph = new GraphBuilder(encodingManager).create();
    ghson = new GHJsonFactory().create();
}
Also used : EncodingManager(com.graphhopper.routing.util.EncodingManager) GHJsonFactory(com.graphhopper.json.GHJsonFactory) GraphBuilder(com.graphhopper.storage.GraphBuilder) Before(org.junit.Before)

Aggregations

GHJsonFactory (com.graphhopper.json.GHJsonFactory)6 JsonFeatureCollection (com.graphhopper.json.geo.JsonFeatureCollection)5 BBox (com.graphhopper.util.shapes.BBox)4 Test (org.junit.Test)4 DataFlagEncoder (com.graphhopper.routing.util.DataFlagEncoder)1 EncodingManager (com.graphhopper.routing.util.EncodingManager)1 FlagEncoder (com.graphhopper.routing.util.FlagEncoder)1 FlagEncoderFactory (com.graphhopper.routing.util.FlagEncoderFactory)1 CountriesSpatialRuleFactory (com.graphhopper.routing.util.spatialrules.CountriesSpatialRuleFactory)1 SpatialRuleLookup (com.graphhopper.routing.util.spatialrules.SpatialRuleLookup)1 GraphBuilder (com.graphhopper.storage.GraphBuilder)1 PMap (com.graphhopper.util.PMap)1 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 InputStreamReader (java.io.InputStreamReader)1 Before (org.junit.Before)1