RouterDb LoadOsmData is missing, docs not updated?
tekeroth-snapcode opened this issue · 0 comments
tekeroth-snapcode commented
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:
I have installed the following NuGets:
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.)