Search in sources :

Example 1 with BinaryFileBasedOpenStreetMapProviderImpl

use of org.opentripplanner.openstreetmap.impl.BinaryFileBasedOpenStreetMapProviderImpl in project OpenTripPlanner by opentripplanner.

the class OpenStreetMapParserTest method testBinaryParser.

@Test
public void testBinaryParser() throws Exception {
    BinaryFileBasedOpenStreetMapProviderImpl pr = new BinaryFileBasedOpenStreetMapProviderImpl();
    OSMMap map = new OSMMap();
    pr.setPath(new File(URLDecoder.decode(getClass().getResource("map.osm.pbf").getPath(), "UTF-8")));
    pr.readOSM(map);
    testParser(map);
}
Also used : BinaryFileBasedOpenStreetMapProviderImpl(org.opentripplanner.openstreetmap.impl.BinaryFileBasedOpenStreetMapProviderImpl) OSMMap(org.opentripplanner.openstreetmap.model.OSMMap) File(java.io.File) Test(org.junit.Test)

Aggregations

File (java.io.File)1 Test (org.junit.Test)1 BinaryFileBasedOpenStreetMapProviderImpl (org.opentripplanner.openstreetmap.impl.BinaryFileBasedOpenStreetMapProviderImpl)1 OSMMap (org.opentripplanner.openstreetmap.model.OSMMap)1