예제 #1
0
        public async Task PtvApi_GetAddress_CountryInEnglish_ShouldReturnCorrectCoordinates()
        {
            PtvGeocoder   api     = new PtvGeocoder(_url, _user, _token);
            GeoCoordinate?address = await api.GeocodeAsync("Katwilgweg", "2", "2050", "Antwerpen", "", "Belgium");

            AssertCoordinates(address.GetValueOrDefault(), 4.359231, 51.219501);
        }
예제 #2
0
        public async Task PtvApi_GetAddressByText_AllAccurateParameters_ISO3_ShouldReturnCorrectCoordinates(string street, string country, double x, double y)
        {
            PtvGeocoder   api     = new PtvGeocoder(_url, _user, _token);
            GeoCoordinate?address = await api.GeocodeAsync(street, country);

            AssertCoordinates(address.GetValueOrDefault(), x, y);
        }
예제 #3
0
        public async Task PtvApi_GetAddressByText_ShouldReturnCorrectCoordinates(string address, string country, double x, double y)
        {
            PtvGeocoder   api    = new PtvGeocoder(_url, _user, _token);
            GeoCoordinate?result = await api.GeocodeAsync(address, country);

            AssertCoordinates(result.GetValueOrDefault(), x, y);
        }