itinero / routing

The routing core of itinero.
Apache License 2.0
220 stars 70 forks source link

RouterDb LoadOsmData is missing, docs not updated? #352

Closed tekeroth-snapcode closed 2 years ago

tekeroth-snapcode commented 2 years ago

UPDATE Forget it, how silly of me: I didnt get IntelliSense at first, but then I realize it was an ext method, and the using statement was needed: using Itinero.IO.Osm;

RESOLVED =)

Hello! I just installed 1.5.1 and read the docs here, where it tells me to use the following code to load OSM data:

// load some routing data and build a routing network.
var routerDb = new RouterDb();
using (var stream = new FileInfo(@"/path/to/some/osmfile.osm.pbf").OpenRead())
{
    // create the network for cars only.
    routerDb.LoadOsmData(stream, Vehicle.Car); 
}

But, LoadOsmData is not found:

image

I have installed the following NuGets:

image

I looked in GitHub for some code to use instead of the LoadOsmData, but I didnt find it. I would appreciate a pointer in the right direct of how to proceed here, what method to use instead?

(Running in VS2022, .NET Framework 4.7.2 WinForms.)