public void GoogleAPITest() { GeoPoint g1 = new GeoPoint((decimal)48.2392831, (decimal)16.3773241); // Technikum GeoPoint g2 = _agent.EncodeAddress("Technikum Wien"); Assert.IsTrue(g1.DistToOtherInMeters(g2) < 100); }
public void DistanceUtilityTest() { GeoPoint g1 = new GeoPoint((decimal)48.2166205, (decimal)16.3958889); //Riesenrad GeoPoint g2 = new GeoPoint((decimal)48.2392831, (decimal)16.3773241); //Technikum double dist = g1.DistToOtherInMeters(g2); _logger.Info(string.Format("DistanceTest: {0}", dist)); Assert.IsTrue(dist < 3000 && dist > 2000); }