GraphHopper.com | Forum | GitHub | Maps | Blog

How do I use GraphHopperOSM to read in an OSM file?


#1

So far, I’ve come up with

	GraphHopperOSM graphHopperOSM = new GraphHopperOSM().setOSMFile(osmFile);

but I’m not sure it’s enough.

If it is enough, which class should I look into for actually doing stuff with this OSM file?

Thanks,

-bpp


#2

You can have a look into the tests like GraphHopperIT:

  hopper = new GraphHopperOSM().
                setOSMFile(osmFile).
                setGraphHopperLocation(location).
                setEncodingManager(new EncodingManager(importVehicles)).
                importOrLoad();