Extract ways and nodes from *.osm file. https://www.openstreetmap.org Allows you to extract data from an exported file, with ways, nodes, tags, etc.
var pathFile = "map-file.osm";
var parser = new OsmParser();
var osmFile = await parser.ParseFromFileAsync(pathFile);
var builder = new OsmBuilder(osmFile);
var map = builder.Build();