Пример #1
0
        public LocationCoordinates ChangeLocationToCoordinates(User user)
        {
            var location     = GetCoordinatesForAddress("Polska", user.City, user.PostCode, user.Street, user.StreetNumber);
            var locationData = _jsonSerializer.DeserializeLocation(location);

            var locationCoordinates = new LocationCoordinates()
            {
                Lat = locationData[0].lat,
                Lon = locationData[0].lon,
            };

            return(locationCoordinates);
        }