Exemplo n.º 1
0
        private static BingGeocodeService.Confidence TranslateGeocodeConfidence(GeocodeConfidence confidence)
        {
            BingGeocodeService.Confidence result = BingGeocodeService.Confidence.Low;
            switch (confidence)
            {
            case GeocodeConfidence.High:
                result = BingGeocodeService.Confidence.High;
                break;

            case GeocodeConfidence.Medium:
                result = BingGeocodeService.Confidence.Medium;
                break;
            }

            return(result);
        }
Exemplo n.º 2
0
        private static GeocodeConfidence TranslateBingConfidence(BingGeocodeService.Confidence confidence)
        {
            GeocodeConfidence result = GeocodeConfidence.Zero;

            switch (confidence)
            {
            case BingGeocodeService.Confidence.High:
                result = GeocodeConfidence.High;
                break;

            case BingGeocodeService.Confidence.Medium:
                result = GeocodeConfidence.Medium;
                break;

            case BingGeocodeService.Confidence.Low:
                result = GeocodeConfidence.Low;
                break;
            }

            return(result);
        }