use of org.opentripplanner.openstreetmap.impl.StreamedFileBasedOpenStreetMapProviderImpl in project OpenTripPlanner by opentripplanner.
the class OpenStreetMapParserTest method testStreamedXMLParser.
@Test
public void testStreamedXMLParser() throws Exception {
StreamedFileBasedOpenStreetMapProviderImpl pr = new StreamedFileBasedOpenStreetMapProviderImpl();
OSMMap map = new OSMMap();
pr.setPath(new File(URLDecoder.decode(getClass().getResource("map.osm.gz").getPath(), "UTF-8")));
pr.readOSM(map);
testParser(map);
}
Aggregations