public override int Build() { string xml = overpass.Query(Query); overpass.ParseSegmentsAndNodes(xml); return(ParseTracks()); }
public void CanGetOverpassQuery() { Overpass overpass = new Overpass(leftTopLat, leftTopLon, bottomRightLat, bottomRightLon); Assert.IsInstanceOfType(overpass, typeof(Overpass)); string str = overpass.Query(Overpass.Highway); Assert.IsFalse(string.IsNullOrEmpty(str)); Assert.AreEqual("<?xml", str.Substring(0, 5)); //File.WriteAllText(@"C:\Users\John\tmp\testrailway.xml", overpass.Query(Overpass.Railway)); }