public string Define(double latitude, double longitude)
        {
            var    locationService = new GoogleLocationService();
            Region region          = locationService.GetRegionFromLatLong(latitude, longitude);

            return($"{region.ShortCode} {region.Name}");
        }
Beispiel #2
0
        public string GetState(double lat, double lon)
        {
            var    locationService = new GoogleLocationService();
            var    result          = locationService.GetRegionFromLatLong(lat, lon);
            string state           = result.ShortCode;

            return(state);
        }