Beispiel #1
0
        public DestModels.Region Translate(SourceModels.CountryFeature feature, DestModels.Country parent)
        {
            if (!feature.IsRegion)
                return null;

            var record = new DestModels.Region();

            record.Name = feature.Name;
            record.GeoNameID = feature.GeoNameID;
            record.CountryID = parent.ID;

            return record;
        }
Beispiel #2
0
        public DestModels.City Translate(SourceModels.CountryFeature feature, DestModels.Region parent)
        {
            if (!feature.IsCity)
                return null;

            var record = new DestModels.City();

            record.DisplayName = feature.Name;
            record.RegionID = parent.ID;
            record.Latitude = feature.Latitude;
            record.Longitude = feature.Longitude;
            record.Population = (uint)feature.Population;
            record.GeoNameID = feature.GeoNameID;

            return record;
        }
        public DestModels.City ToCity(DestModels.Region parent)
        {
            if (!this.IsCity)
                return null;

            var record = new DestModels.City();

            return record;
        }